https://bugs.kde.org/show_bug.cgi?id=477737
Bug ID: 477737 Summary: KWIN includes window decorations in the size of new windows for SSD (xdg_toplevel) Classification: Plasma Product: kwin Version: 5.27.9 Platform: Arch Linux OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: wayland-generic Assignee: kwin-bugs-n...@kde.org Reporter: ideasma...@gmail.com Target Milestone: --- Logical error with new windows under WAYLAND & server-side decorations, where the surface size is used to create a new window that includes the window decorations. This means creating a surface 500x500 then using XDG top-level to assign server side decorations will create a 500x500 window, shrinking the applications surface (e.g. 480x494) in the `configure` callback. Since there is no way to access the decoration size there is no way to create a window with a predictable surface size. This was reported to Blender, which stores & restores the size of the file-selector. This results in the window shrinking each time it's displayed, see: https://projects.blender.org/blender/blender/issues/113059 Video: https://projects.blender.org/attachments/d781be36-c778-452b-8115-f96310d46329 ---- STEPS TO REPRODUCE 1. Open Blender [versions `3.6.x`, `4.0`, `4.0.1`]. 2. Press Ctrl-O (the file selector will display). 3. Move the cursor over the window and press Escape (closing the file selector). 4. Repeat steps 2 & 3. OBSERVED RESULT The window shrinks each time. EXPECTED RESULT The `xdg_toplevel_listener::configure` callback should not include window decorations in the `width` & `height` arguments. Instead, the existing surface size should be used unless there is a reason to constrain them (window size exceeds monitor size for e.g.). SOFTWARE/OS VERSIONS Windows: NA macOS: NA Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.27.9 KDE Frameworks Version: 5.27.9 Qt Version: 6.6.0 -- You are receiving this mail because: You are watching all bug changes.