GNOME Bugzilla – Bug 792855
Clicking on a Wayland client minimizes it
Last modified: 2018-01-24 11:06:57 UTC
Created attachment 367357 [details] Test case reproducer On Fedora 27 with GNOME 3.26.2, clicking on a Wayland client (see attached reproducer for example) minimises it (moves it below the window behind it) instead of bringing focus to it. This results in not being able to work with mouse on any window created using Wayland. Compile the attached file with: gcc test-file.c pointer-constraints-unstable-v1-code.c relative-pointer-unstable-v1-code.c -lwayland-client -lwayland-cursor -lwayland-egl -lEGL -lGLESv2 You will need the client-headers and code file generated by wayland-scanner for pointer-constraint and relative-pointer. When running the compiled program, make sure that there is a window open on the screen (as opposed to being on desktop), then run the program and click on the newly-created window. The newly-created window should get hidden instead of getting focused.
UPDATE: It seems like all events (mouse and keyboard) are being sent to the window right below it. For example, right-clicking on the test case window should close it (see function waylandPointerHandleButton in reproducer). However, right-click on the test window with another window behind it - say, Firefox - results in the test window hiding and Firefox's right-click menu appearing.
This is probably then a duplicate of bug 790309. Can you check that it fixes the issue?
(In reply to Jonas Ådahl from comment #2) > This is probably then a duplicate of bug 790309. Can you check that it fixes > the issue? Yes, that patch solves the issue. Should I mark this bug duplicate/fixed? Also, any ETA for when the patch will be available upstream? Since Wayland Protocols 1.12 with stable xdg_shell is not part of Fedora 27, I'm stuck with wl_shell for now. Thank you.
It'll be available in the next gnome-3-26 release. I don't know when that'll be however. I'll close it for you. Thanks for testing and reporting! *** This bug has been marked as a duplicate of bug 790309 ***