mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 09:15:22 +01:00
[GH-ISSUE #613] Tray has weird click behaviour #3012
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#3012
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ToxicMushroom on GitHub (May 31, 2024).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/613
Describe the bug
Double clicking on tray icons does not close the tray popup again.
Triple clicking does but only if enough time passed.
Quadrupple clicking seems to always close it again x), or I'm too slow.
The other modules don't show this behavior and their popups go away on the second click as expected. (e.g. sound, time/calendar, notifications)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Menu closes on second click.
System information:
Configuration
Config
Styles
@JakeStanger commented on GitHub (May 31, 2024):
This behaviour should be down to GTK, as the tray uses actual menu widgets instead of a separate window like the other popups. I'll see if I can work around the strange behaviour though
@JakeStanger commented on GitHub (Jun 28, 2024):
Finally getting round to clearing through the backlog. I'm not actually able to replicate this one, although I'm also not sure I can do anything about it from googling (I give GTK a sub-menu for the menu widget, it does the rest).
Are you able to demo the issue at all?
@rein1410 commented on GitHub (Jul 27, 2024):
What I also notice that clicking on one of the tray menu options with two different mouse buttons won't do anyting
Example:
I have Brave on the tray
I right click the Brave icon and the menu opens
I left click on 'About Brave' and it won't do anything
What works is:
I right click the Brave icon and the menu opens
I right click on 'About Brave' and it opens the about page
@ToxicMushroom commented on GitHub (Aug 5, 2024):
I'd happily demo it if I was able to install again
cargo install ironbar@ToxicMushroom commented on GitHub (Aug 5, 2024):
After messing around with the my toolchain and doing cargo build on the latest commit it built so I'll try in a bit
@ToxicMushroom commented on GitHub (Aug 5, 2024):
Can't reproduce on hyprland, On hyprland after closing a built in module however the bar goes out of focus.. so you can click the bar again until you move 1px, really weird
@ToxicMushroom commented on GitHub (Aug 5, 2024):
I'm clicking on both items as fast as I can, works perfectly on the calendar module
sway:
https://github.com/user-attachments/assets/8d3a93df-3ff0-4753-90be-4a46b0bdf29b
@ToxicMushroom commented on GitHub (Aug 5, 2024):
And hyprland as I previously mentioned has perfect tray clicking, but the bar becomes unfocused
https://github.com/user-attachments/assets/6b3f7236-b6d8-4d03-9767-c8e1e44f6dc2
@JakeStanger commented on GitHub (Nov 7, 2024):
I can confirm I can replicate this, works as intended on Hyprland but not on Sway. Annoyingly on Waybar (via
libdbusmenuI think?) it works properly on both so this is something I'll need to fix.I can see what's happening - the popup menu is stealing focus, so you have to click back on Ironbar to regain its focus. I've no idea how to tackle that yet though.
@JakeStanger commented on GitHub (Nov 16, 2024):
I'd be interested to know with #779 implemented whether this still occurs, as I've just switched to
libdbusmenu-gtk3.@ToxicMushroom commented on GitHub (Nov 16, 2024):
Still occurs yes
@JakeStanger commented on GitHub (Nov 16, 2024):
Got it.
Ended up pretty much translating Waybar but seems the intended GTK menu widgets cause this, whereas bodging it with a generic
EventBoxsorts it. Weird.