[GH-ISSUE #513] system tray menus do not work when opened with right click #1570

Closed
opened 2026-05-22 22:53:03 +01:00 by JakeStanger · 6 comments
Owner

Originally created by @michaelBelsanti on GitHub (Mar 29, 2024).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/513

Describe the bug
Both right clicking and left clicking opens the menu for items in the system tray, but if you open the menu with a right click, the buttons do not work.

To Reproduce
Steps to reproduce the behavior:

  1. Right click on icon in system tray
  2. Click a menu option
  3. It doesn't work

System information:

  • Distro: NixOS Unstable
  • Compositor: Hyprland
  • Ironbar version: 0.15.0-pre (master)

Configuration
https://github.com/michaelBelsanti/nixconfig/blob/main/modules/nixos/desktops/hyprland/ironbar.nix

Originally created by @michaelBelsanti on GitHub (Mar 29, 2024). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/513 **Describe the bug** Both right clicking and left clicking opens the menu for items in the system tray, but if you open the menu with a right click, the buttons do not work. **To Reproduce** Steps to reproduce the behavior: 1. Right click on icon in system tray 2. Click a menu option 3. It doesn't work **System information:** - Distro: NixOS Unstable - Compositor: Hyprland - Ironbar version: 0.15.0-pre (master) **Configuration** https://github.com/michaelBelsanti/nixconfig/blob/main/modules/nixos/desktops/hyprland/ironbar.nix
Author
Owner

@JakeStanger commented on GitHub (Mar 29, 2024):

It seems the default behaviour of the GTK 'activate' signal is that it is only called when you click a menu item with the same button you click to open the menu. I've switched it to use a button click signal that seems more consistent.

<!-- gh-comment-id:2027231688 --> @JakeStanger commented on GitHub (Mar 29, 2024): It seems the default behaviour of the GTK 'activate' signal is that it is only called when you click a menu item with the same button you click to open the menu. I've switched it to use a button click signal that seems more consistent.
Author
Owner

@ToxicMushroom commented on GitHub (May 31, 2024):

Eh I still see this behavior, does not seem fixed

Sway 1.9
Ironbar 1.16.0-pre
<!-- gh-comment-id:2142403822 --> @ToxicMushroom commented on GitHub (May 31, 2024): Eh I still see this behavior, does not seem fixed ``` Sway 1.9 Ironbar 1.16.0-pre ```
Author
Owner

@JakeStanger commented on GitHub (May 31, 2024):

Re-opened, will investigate.

<!-- gh-comment-id:2142472013 --> @JakeStanger commented on GitHub (May 31, 2024): Re-opened, will investigate.
Author
Owner

@JakeStanger commented on GitHub (Nov 5, 2024):

lol im so stupid

<!-- gh-comment-id:2457165932 --> @JakeStanger commented on GitHub (Nov 5, 2024): lol im so stupid
Author
Owner

@JakeStanger commented on GitHub (Nov 5, 2024):

There's two signals - I updated one of them but not the other. Resolved now 🙃

<!-- gh-comment-id:2457170055 --> @JakeStanger commented on GitHub (Nov 5, 2024): There's two signals - I updated one of them but not the other. Resolved now :upside_down_face:
Author
Owner

@ToxicMushroom commented on GitHub (Nov 5, 2024):

ty :)

<!-- gh-comment-id:2457175203 --> @ToxicMushroom commented on GitHub (Nov 5, 2024): ty :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#1570
No description provided.