Context menu in tray module renders empty on first click, works normally on second click
Author: time-slayerCreated Aug 30, 2026Updated Sep 9, 2026
Labelsbugmemorysnicustomclock
Describe the bug When attempting to open an application's context menu from the tray module, the menu opens but appears broken with no visible options inside. If I open it a second time, the menu renders perfectly fine with all options visible. However, if I restart the tray application, the bug returns and the menu breaks on the first click again.
To reproduce
- Start Waybar with the tray module enabled.
- Launch an application that uses a tray icon.
- Right click tray icon to open its context menu. Observe that the menu is broken.
- Close the menu and click it a second time. Observe that it now renders correctly.
{
"layer": "top",
"modules-right": ["tray"],
"tray": {
"spacing": 10
}
}Expected behaviour The context menu should render at full size with all options visible.
Screenshots
nm-applet
telegram-desktop
Environment
- Waybar v0.15.0-1004-g6d60c8e0 (branch 'master')
- AUR
waybar-git - Hyprland 0.56.2
Debug output
Run waybar -l debug and paste any relevant output:
(waybar:26688): LIBDBUSMENU-GLIB-CRITICAL **: 16:38:40.314: dbusmenu_menuitem_send_about_to_show: assertion 'DBUSMENU_IS_MENUITEM(mi)' failed
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debugSource: Alexays/Waybar