After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 792855 - Clicking on a Wayland client minimizes it
Clicking on a Wayland client minimizes it
Status: RESOLVED DUPLICATE of bug 790309
Product: mutter
Classification: Core
Component: wayland
3.26.x
Other Linux
: Normal critical
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2018-01-24 07:33 UTC by Naman Dixit
Modified: 2018-01-24 11:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case reproducer (15.90 KB, text/x-csrc)
2018-01-24 07:33 UTC, Naman Dixit
Details

Description Naman Dixit 2018-01-24 07:33:11 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.
Comment 1 Naman Dixit 2018-01-24 07:56:10 UTC
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.
Comment 2 Jonas Ådahl 2018-01-24 07:58:57 UTC
This is probably then a duplicate of bug 790309. Can you check that it fixes the issue?
Comment 3 Naman Dixit 2018-01-24 08:37:40 UTC
(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.
Comment 4 Jonas Ådahl 2018-01-24 11:06:57 UTC
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 ***