Skip to content

fix(linux/gui): menus open on Wayland - #270

Merged
Anof-cyber merged 1 commit into
masterfrom
dev
Oct 21, 2026
Merged

Anof-cyber merged 1 commit into
masterfrom
dev

Conversation

@Anof-cyber

Copy link
Copy Markdown
Member

The window now runs as the user, so on a Wayland desktop it is a native Wayland window. Opening a menu moves the keyboard focus to the menu's popup, and the handler that closed menus when the window lost focus (written for the old root window on X11, where a menu grab could outlive a switch to another program) cancelled every menu the moment it opened. The handler is now connected on X11 only.

Linked issue

Fixes #

What does this pull request do?

Tests

  • Did you run the tests locally? (which ones, on which system):
  • Result or output (paste the last lines):
  • Did anything fail? (what, and why):
  • New tests added (or "none"):
  • Tests removed or changed (or "none"):

Anything else? (optional)


By opening this pull request I confirm that it targets dev, that I commented on the linked issue before starting, and that I ran the tests listed above.

The window now runs as the user, so on a Wayland desktop it is a native Wayland window. Opening a menu moves the keyboard focus to the
menu's popup, and the handler that closed menus when the window lost focus (written for the old root window on X11, where a menu grab
could outlive a switch to another program) cancelled every menu the moment it opened. The handler is now connected on X11 only.
@Anof-cyber
Anof-cyber merged commit eedf1b7 into master Oct 21, 2026
17 checks passed
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant