Summary: | [Desktop Grid] Regression in dropped window animations | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Blazer Silving <breakingspell> |
Component: | effects-overview | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kde, kdedev, nate, notmart |
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/c402845961fa10185d7c28a49a9b72e7581258f8 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
Normal behavior of the desktop grid
Abnormal behavior of the desktop grid |
Description
Blazer Silving
2024-11-24 20:24:42 UTC
Created attachment 176089 [details]
Normal behavior of the desktop grid
Created attachment 176090 [details]
Abnormal behavior of the desktop grid
Adding Nate and Marco to CC, thanks y'all! I had a look at the newly merged patch: This looks wrong: if (newGlobalRect.x < thumb.windowHeap.x || newGlobalRect.x is (presumably) global. windowHeap.x is relative to the parent of thumb.windowHeap That's mixing co-ordinate spaces. https://invent.kde.org/plasma/kwin/-/commit/31c4b8ac555289309341b03bf813b4ac45d2e12d This later patch defines heapRect to reference thumb.windowHeap, but still runs it against "oldGlobalRect" and issue persists. It doesn't seem the coordinate space/objects used by Overview is accessible in the WindowHeapDelgate scope though? I wonder again if the fix may be better approached in the DropArea block of DesktopBar.qml: https://invent.kde.org/plasma/kwin/-/blob/master/src/plugins/overview/qml/DesktopBar.qml?ref_type=heads#L177 A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6833 Git commit 0e9f1e721c7b45b6b7d31a44df925483c1ec1155 by Marco Martin. Committed on 26/11/2024 at 10:50. Pushed by mart into branch 'master'. effects/overview: Animate if the thumbnail is dropped in an heap If the new position the thumbnail was dropped intersects the geometry of an heap in any way, then execute the animation, otherwise skip it (the case of drop on a desktop thumbnails in the overview) previous patch attempted that but with not completely correct logic M +2 -4 src/plugins/private/qml/WindowHeapDelegate.qml https://invent.kde.org/plasma/kwin/-/commit/0e9f1e721c7b45b6b7d31a44df925483c1ec1155 Sorry to report: https://invent.kde.org/plasma/kwin/-/commit/0e9f1e721c7b45b6b7d31a44df925483c1ec1155 fixes the Desktop Grid animations, but the Desktop Bar regresses back to BUG 495444 with the gliding windows on drop. Git commit c402845961fa10185d7c28a49a9b72e7581258f8 by Marco Martin. Committed on 26/11/2024 at 13:03. Pushed by mart into branch 'Plasma/6.2'. effects/overview: Animate if the thumbnail is dropped in an heap If the new position the thumbnail was dropped intersects the geometry of an heap in any way, then execute the animation, otherwise skip it (the case of drop on a desktop thumbnails in the overview) previous patch attempted that but with not completely correct logic (cherry picked from commit 0e9f1e721c7b45b6b7d31a44df925483c1ec1155) 0e9f1e72 effects/overview: Animate if the thumbnail is dropped in an heap Co-authored-by: Marco Martin <notmart@gmail.com> M +2 -4 src/plugins/private/qml/WindowHeapDelegate.qml https://invent.kde.org/plasma/kwin/-/commit/c402845961fa10185d7c28a49a9b72e7581258f8 Seeing as https://invent.kde.org/plasma/kwin/-/commit/c402845961fa10185d7c28a49a9b72e7581258f8 for this ticket fixes the overall drop issue, but regresses back to BUG 495444, we can close this one and re-open the former. |