overview: unfuck window moving on offset monitors

This commit is contained in:
end-4
2025-07-09 11:41:16 +07:00
parent 8ba91edeae
commit b6f0d00137
2 changed files with 12 additions and 5 deletions
@@ -42,8 +42,8 @@ Item { // Window
x: initX
y: initY
width: Math.round(Math.min(windowData?.size[0] * root.scale, (restrictToWorkspace ? windowData?.size[0] : availableWorkspaceWidth - x + xOffset)))
height: Math.round(Math.min(windowData?.size[1] * root.scale, (restrictToWorkspace ? windowData?.size[1] : availableWorkspaceHeight - y + yOffset)))
width: windowData?.size[0] * root.scale
height: windowData?.size[1] * root.scale
layer.enabled: true
layer.effect: OpacityMask {