Windows are click-through in some of their areas
Affected version
Gnome 46
System Details Report
--- Report details
- Date generated: 2024-03-29 20:09:31
--- Hardware Information:
- Hardware Model: Framework Laptop 13 AMD Ryzen 7040Series
- Memory: 32.0 GiB
- Processor: AMD Ryzen™ 7 7840U w/ Radeon™ 780M Graphics × 16
- Graphics: AMD Radeon™ Graphics
- Disk Capacity: 500.1 GB
--- Software Information:
- Firmware Version: 03.03
- OS Name: Arch Linux
- OS Build: rolling
- OS Type: 64-bit
- GNOME Version: 46
- Windowing System: Wayland
- Kernel Version: Linux 6.8.2-arch2-1
Wayland or Xorg?: Wayland (Found while running gnome-shell in a wayland session, not tested under XOrg)
Mutter version (I'm unaware how to get the actual version, I just ran mutter
in the terminal):
libmutter-Message: 20:07:43.746: Running Mutter (using mutter 46.0) as a Wayland display server
Bug summary
Since my installation of Gnome 46 a couple days ago or so I have been noticing that for some programs windows are visible as a certain size (as in, I can see the box with content in it rendered on my screen), but the cursor/mouse believes the "true" window to be much smaller. Clicking outside of that "true" window (while still in the visible window) counts as a click on whatever element is underneath the current window.
I have encountered this mostly while playing a game on Steam (Griftlands) where the rendered window was the entire screen (2256 x 1504), but the clickable window was much smaller (~840 x ~420).
I registered those numbers by having a browser underneath and checking for mousemove events and registering the pageX/pageY values of the events.
I thought this to be a steam issue, but this reddit thread makes me believe that the issue is not application specific and more a deep rooted disagreement in how large the rendered window is vs. the clickable window (which should be identical).
I replicated the issue from there with VLC (there the clickable window was ~840 x ~526). Note that the window does not need to be maximized. The clickable window never becomes larger than the rendered window, but changes in width of the rendered window do not change the height of the clickable window.
Steps to reproduce
- Launch VLC
- Maximize VLC (top bar with the x button still visible)
- Move a window underneath VLC (so that you can see it getting focused)
- Click on the lower-right hand side of the screen
- See the window that was underneath the VLC window suddenly appear on top and suddenly in focus as if it were clicked
What happened
Mutter (I assume mutter is responsible for handling the behaviour of rendered window and clickable window?) behaved as if the click on the VLC window were a click on whatever element is underneath it. Thus it "focuses" whatever window is underneath and makes it visible.
What did you expect to happen
I expected Mutter to treat any click on the area that visibly looks like it belongs to the VLC window like a click on the VLC window.
Relevant logs, screenshots, screencasts etc.
Screencast_from_2024-03-29_20-35-37 Screencast_from_2024-03-29_20-35-51