Verified Commit a96da369 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[applets/pager] Fix switching desktops on drag & hover

Access to global variables holding the state for currently hovered
desktop is poorly ordered by QML DropArea, so an additional check is
needed to ensure a component is only cleaning up after itself.

BUG: 416878
FIXED-IN: 5.24.6 5.25.3 5.26
(cherry picked from commit 4f190cdf)
parent 3c4544df
Pipeline #201976 passed with stage
in 6 minutes and 19 seconds
......@@ -388,8 +388,11 @@ MouseArea {
onDragLeave: {
root.dragSwitchDesktopIndex = -1;
// new onDragEnter may happen before an old onDragLeave
if (root.dragSwitchDesktopIndex === index) {
root.dragSwitchDesktopIndex = -1;
onDrop: {
pagerModel.drop(event.mimeData, event.modifiers, desktop.desktopId);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment