forked from Shinonome/dots-hyprland
overview: floating window position move
This commit is contained in:
@@ -218,8 +218,13 @@ Item {
|
|||||||
updateWindowPosition.restart()
|
updateWindowPosition.restart()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
window.x = window.initX
|
if (!window.windowData.floating) {
|
||||||
window.y = window.initY
|
updateWindowPosition.restart()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
const percentageX = Math.round((window.x - xOffset) / root.workspaceImplicitWidth * 100)
|
||||||
|
const percentageY = Math.round((window.y - yOffset) / root.workspaceImplicitHeight * 100)
|
||||||
|
Hyprland.dispatch(`movewindowpixel exact ${percentageX}% ${percentageY}%, address:${window.windowData?.address}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onClicked: (event) => {
|
onClicked: (event) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user