Red Hat Bugzilla – Bug 1460981
Mouse events pass trough some windows
Last modified: 2017-08-08 04:27:51 EDT
Created attachment 1287204 [details]
Program reproducing bug
Description of problem:
Under some circumstances when using Mutter as a Wayland compositor a window can stop responding to mouse events. Clicking on the window acts on the window behind it, or lands on the desktop if there is nothing there. Scrolling scrolls the content in the window behind the one under the mouse cursor. The mouse cursor changes as appropriate for its position on the window under the affected one.
Version-Release number of selected component (if applicable):
Mutter version 3.22.4, release 3.fc25.
Occurs every time with the attached example.
Steps to Reproduce:
1. Compile the attached program with
g++ $(sdl2-config --cflags --libs) click-through-window.cc \
2. Run the application with
3. Right click on the window that appears
The window behind is focused and responds to the click.
The event it sent to the window which was clicked on, which in this case ignores it.
A message such as
gnome-shell: Unknown surface ID 154 (from window 0xc00008 (window))
appears in the system log when the window is created.
The issue does not occur on Weston, which is why I suspect this is a bug in Mutter and not Xwayland or SDL2.