1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-16 05:57:36 +03:00

validate config handler positioning

This commit is contained in:
Michail Vourlakos 2020-11-29 11:04:18 +02:00
parent 24661fb91f
commit 110e82b7d3

View File

@ -150,7 +150,7 @@ MouseArea {
}
}
} else {
} else {
var item = hoveredItem(mouse.x, mouse.y);
if (root.dragOverlay && item && item !== lastSpacer) {
@ -323,10 +323,18 @@ MouseArea {
if(currentApplet){
var transformChoords = configurationArea.mapFromItem(currentApplet, 0, 0)
handle.x = transformChoords.x;
handle.y = transformChoords.y;
handle.width = currentApplet.width;
handle.height = currentApplet.height;
if (handle.x !== transformChoords.x
|| handle.y !== transformChoords.y
|| handle.width !== currentApplet.width
|| handle.height !== currentApplet.height) {
handle.x = transformChoords.x;
handle.y = transformChoords.y;
handle.width = currentApplet.width;
handle.height = currentApplet.height;
repositionHandler.restart();
}
}
}