Bug 486827

Summary: Fullscreen windows wiggle when losing/gaining focus
Product: [Plasma] kwin Reporter: burneddi
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: xaver.hugl
Priority: NOR    
Version First Reported In: 6.0.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description burneddi 2024-05-10 00:28:53 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
Many fullscreen windows, such as games, "wiggle" when losing and regaining focus. This seems to be because when the window loses focus, it's moved above the taskbar for one frame before being repositioned to the bottom of the screen. This doesn't occur with all fullscreen windows; it consistently occurs with some games (Eve Online and Noita, for example) running under Wine, whereas many other fullscreen applications (Firefox, mpv, Jellyfin, the game Factorio) do not trigger this.

A workaround for the issue is to un-fullscreen the window (right click in taskbar > More > untick Fullscreen), manually move it down so the top left corner of the window is in the top left corner of the screen, and then re-fullscreen it.

STEPS TO REPRODUCE
1. Open an affected fullscreen application (e.g. the game Noita)
2. Bring up the taskbar (e.g. by pressing meta to open the application launcher, or by alt-tabbing to another window)

OBSERVED RESULT
The affected window is moved above the taskbar for one frame before being moved back down.

EXPECTED RESULT
The affected window doesn't move and instead just layers underneath the taskbar.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 40, kernel 6.8.8-300, Wayland session
(available in About System)
KDE Plasma Version: 6.0.4 
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Comment 1 Zamundaaa 2024-07-17 15:06:38 UTC

*** This bug has been marked as a duplicate of bug 474488 ***
Comment 2 burneddi 2024-07-18 04:55:21 UTC
I'm not sure this is a duplicate of that bug. The issue here relates to the window positioning of borderless fullscreen windows. The panel never appears on top of the window; rather, the problem is that the window position changes for a split second when the panel is brought up (by e.g. pressing meta or by switching focus).