mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 06:15:21 +01:00
[GH-ISSUE #1395] Menu entries only appear when opening via mouse #7440
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#7440
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 @dae-vinity on GitHub (Feb 23, 2026).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1395
Describe the bug
i've configured labwc to open the menu module popup when my start key is pressed
this works most of the time, but if you're opening the menu for the first time after a reload or reboot, no entries will load unless you click the button with your pointer.
this is a very very small bug so you don't need to worry about it if you don't want to but it does happen
To reproduce
Steps to reproduce the behavior:
ironbar reloadironbar bar {bar-name} toggle-popup menuExpected behavior
menu entries to load upon any interaction
System information:
Screenshots
after clicking:

@JakeStanger commented on GitHub (Feb 23, 2026):
Interesting.
The problem is that the menu module needs to perform a lot of I/O to parse all the desktop files, so it offsets it until the first click to avoid hanging the whole bar on startup. That's why the first click takes longer, and explains what you're seeing.
github.com/JakeStanger/ironbar@172f385fb0/src/modules/menu/mod.rs (L140-L146)I think it might be as simple as moving the call from the click handler, to a handler that listens to the popup's popover widget opening. I don't think that should have any change in behaviour.
@JakeStanger commented on GitHub (Feb 24, 2026):
I'm going to reopen this as I've just realised my fix has now caused the menu to open whenever you open a popup for the first time for any module.
@JakeStanger commented on GitHub (Feb 28, 2026):
Properly fixed by
github.com/JakeStanger/ironbar@e60eb4c050