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:
parent
24661fb91f
commit
110e82b7d3
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user