Skip to content

menu: restore focus to feh window after hiding menu#827

Merged
derf merged 1 commit intoderf:masterfrom
pscheyen:fix-focus-loss
Apr 26, 2026
Merged

menu: restore focus to feh window after hiding menu#827
derf merged 1 commit intoderf:masterfrom
pscheyen:fix-focus-loss

Conversation

@pscheyen
Copy link
Copy Markdown
Contributor

focus was set to menu_cover on menu open but never restore on hide (say after performing a File->Delete); on Xwayland RevertToPointerRoot doesn't recover it; added an explicit call to XSetInputFocus back to fehwin->win before destroying the cover window.

focus was set to menu_cover on menu open but never restore on
hide (say after performing a File->Delete); on Xwayland RevertToPointerRoot
doesn't recover it; added an explicit call to XSetInputFocus back
to fehwin->win before destroying the cover window.
@derf
Copy link
Copy Markdown
Owner

derf commented Apr 26, 2026

Thanks!

As a side note, this also provides a minor quality of life improvement on X11 when the menu window is partially outside the feh window, the pointer is on the outside portion, and the user uses mouse input to navigate the meny.

@derf derf merged commit a1dbde2 into derf:master Apr 26, 2026
8 checks passed
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.

2 participants