https://bugs.kde.org/show_bug.cgi?id=448856
Bug ID: 448856 Summary: [Wayland] Window is positioned at 0,0 when Fullscreen->Windowed transition occurs Product: kwin Version: 5.23.4 Platform: Fedora RPMs OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: wayland-generic Assignee: kwin-bugs-n...@kde.org Reporter: flibitijib...@flibitijibibo.com Target Milestone: --- SUMMARY When a Wayland window starts in fullscreen, then transitions to windowed mode, there is a risk that the window will be anchored to (0,0). For the default Plasma layout this is normally fine, but if for whatever reason the user has the taskbar at the top rather than the bottom, the decorations will be hidden behind the taskbar and therefore be inaccessible. We believe this is caused by the fact that it _starts_ in fullscreen mode, and so it technically makes sense that the first and only known position is at the very top left corner. If the application starts in windowed mode this does not occur. STEPS TO REPRODUCE This can be reproduced with SDL and a small test program, found here. From a Fedora installation with the taskbar at the top of the display... 1. dnf install SDL2-devel (or build/install SDL from source, latest Git does have some fixes for libdecor!) 2. Download/Build titlebar.c, linked above (see instructions at the top of the file) 3. SDL_VIDEODRIVER=wayland ./titlebar 4. Press the space bar OBSERVED RESULT The window is at the top left of the screen, making the title bar inaccessible EXPECTED RESULT The window is either at the top left of the usable desktop space, or somewhere else that's accessible (i.e. the center of the display). SOFTWARE/OS VERSIONS * plasma-desktop 5.23.4-1.fc35.x86_64 * Kernel 5.15.14-200.fc35.x86_64 * Both Mesa 21.3.4 and NVIDIA 495.46 -- You are receiving this mail because: You are watching all bug changes.