Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix X11 dropdowns persisting for too long on unfocus #3662

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

tarek-y-ismail
Copy link
Contributor

For some reason, our code ignored synthetic unmap requests, even though ICCCM 4.1.4 doesn't mention that it should be ignored. I tried commenting out the couple of lines responsible for ignoring the request and tested with gimp, qtcreator, and imagemagick. All seem to work better, especially gimp and qtcreator where this bug is most apparent.

@tarek-y-ismail tarek-y-ismail requested a review from a team as a code owner November 6, 2024 11:25
Copy link
Collaborator

@AlanGriffiths AlanGriffiths left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks sensible and, at worst, harmless.

But how to reproduce the problem it purports to solve? (qtcreator uses Wayland, when I switch focus from gimp menus are unmapped, ...)

@tarek-y-ismail
Copy link
Contributor Author

But how to reproduce the problem it purports to solve? (qtcreator uses Wayland, when I switch focus from gimp menus are unmapped, ...)

For GIMP, the issue is that whenever you have a menu open, if you open another menu or click somewhere in the application to close the menu, the menu stays displayed for a second or two longer than needed. It's most apparent if you open the file menu and drag the cursor across the menubar.

For QTCreator, you can run it as QT_QPA_PLATFORM=xcb qtcreator, then it will use the X11 backend. Reproduction is similar to GIMP.

Imagemagick is still broken in other ways, but menus seem to also close at the proper time as well (although it's a bit hard to see through the mess)

@AlanGriffiths AlanGriffiths added this pull request to the merge queue Nov 6, 2024
Merged via the queue into main with commit 758d5e3 Nov 6, 2024
63 of 64 checks passed
@AlanGriffiths AlanGriffiths deleted the MIRENG-639/x11-dropdowns-persist branch November 6, 2024 13:13
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