GNOME Bugzilla – Bug 786305
Fullscreen XWayland window is offset by top bar when switched to via Alt+Tab
Last modified: 2021-07-05 13:45:30 UTC
Created attachment 357608 [details] screenshot of the issue, notice the desktop background is visible along the top of the screen (the gray bar in the CS:GO UI should be at the top) To reproduce: 1. Run the game Counter Strike: Global Offensive in fullscreen in GNOME Shell (3.24.3, Mutter version 3.24.4) under Wayland (1.14.0). 2. Switch to another window. 3. Use Alt+Tab to switch back to the CS:GO window. Expected result: Window returns to fullscreen. Actual result: Window is almost fullscreen, but the top of the window doesn't reach the top of the screen. It stops where the GNOME Shell top bar would be, but instead of the top bar being visible, you see the desktop. (See attached image). Notes: I noticed that if I call `.maximize(3)` on the CS:GO MetaWindow object from Looking Glass, it fixes the issue until I switch windows again (3 == META_MAXIMIZE_BOTH). Calling `.unmake_fullscreen()` followed by `.make_fullscreen()` on the MetaWindow object also temporarily fixes the issue. If I switch to the window by opening the Activities overview and clicking the window, this issue does not occur. This issue does not occur in GNOME under XOrg.
A similar issue was fixed for GNOME on Xorg with mutter 3.26.2, but this bug still exists for the GNOME (Wayland) session with mutter 3.26.2. On Ubuntu, the offset also includes the Ubuntu Dock.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/mutter/-/issues/ Thank you for your understanding and your help.