Summary: | Windows appear detached from titlebars in Present Windows and Desktop Grid | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Bharadwaj Raju <bharadwaj.raju777> |
Component: | effects-present-windows | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nate, pereira.alex, xaver.hugl |
Priority: | VHI | Keywords: | regression |
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/commit/4912c7cfa2e54c2f5ad491f868aaae43135ca172 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | Screenshot of the bug |
Can confirm that this started happening within the last month or so. X11 and Wayland are affected. Git commit 4912c7cfa2e54c2f5ad491f868aaae43135ca172 by Vlad Zahorodnii. Committed on 11/08/2021 at 16:43. Pushed by vladz into branch 'master'. scenes/opengl: Calculate item transforms differently Currently, a vertex coordinate is transformed first, then mapped to the global screen coordinates. This causes a problem if a transform is applied to the top-most item and child items are not at (0, 0). For example, scaled windows may have popping out sub-surfaces, etc. With this change, the item transforms will be computed differently. For example, if the parent item is transformed, a child's transform will look as follows [Parent's translation][Parent's transform][Child's translation] instead of [Parent's translation][Child's translation][Parent's transform] In the future, I'd like to get rid of the Item::setTransform() call in OpenGLWindow::performPaint() and have either AnimationEffect or libkwineffects call Item::setTransform(). M +10 -0 src/item.cpp M +4 -0 src/item.h M +43 -32 src/plugins/scenes/opengl/scene_opengl.cpp M +1 -1 src/plugins/scenes/opengl/scene_opengl.h https://invent.kde.org/plasma/kwin/commit/4912c7cfa2e54c2f5ad491f868aaae43135ca172 nice ! this also fixed "firefox wayland" "window opening" when using the "scale effect". ( it used to look like the window was divided into 4 parts all growing ) |
Created attachment 140284 [details] Screenshot of the bug Windows appear detached from their titlebars in Present Windows and Desktop Grid. Plus they have a shadow which seems to be not in the right place. Screenshot attached. SOFTWARE/OS VERSIONS KDE Plasma Version: 5.22.80 KDE Frameworks Version: 5.85.0 Qt Version: 5.15.3 ADDITIONAL INFORMATION I'm using the Plasma Wayland session.