aboutsummaryrefslogtreecommitdiffstats
path: root/config/quickshell/modules
diff options
context:
space:
mode:
authorMewlkor <gruss221@gmail.com>2025-07-26 21:03:52 +0200
committerMewlkor <gruss221@gmail.com>2025-07-26 21:03:52 +0200
commite6d61ca717edce83aaefaceca9e76e30677e88ee (patch)
treeb1a52a8bcbd55b2836777a08f34b8b5b29e3b02e /config/quickshell/modules
parent0ef4312445c4f7169b21802d18e939192eca358e (diff)
fix: fix qs overview window alignment
Diffstat (limited to 'config/quickshell/modules')
-rw-r--r--config/quickshell/modules/overview/OverviewWidget.qml4
-rw-r--r--config/quickshell/modules/overview/OverviewWindow.qml4
2 files changed, 4 insertions, 4 deletions
diff --git a/config/quickshell/modules/overview/OverviewWidget.qml b/config/quickshell/modules/overview/OverviewWidget.qml
index 2ea8d58a..22cf929e 100644
--- a/config/quickshell/modules/overview/OverviewWidget.qml
+++ b/config/quickshell/modules/overview/OverviewWidget.qml
@@ -258,8 +258,8 @@ Item {
repeat: false
running: false
onTriggered: {
- window.x = Math.max((windowData?.at[0] - monitorData?.reserved[0]) * root.scale, 0) + xOffset
- window.y = Math.max((windowData?.at[1] - monitorData?.reserved[1]) * root.scale, 0) + yOffset
+ window.x = Math.max((windowData?.at[0] - monitorData?.reserved[0] - monitorData?.x) * root.scale, 0) + xOffset
+ window.y = Math.max((windowData?.at[1] - monitorData?.reserved[1] - monitorData?.y) * root.scale, 0) + yOffset
}
}
diff --git a/config/quickshell/modules/overview/OverviewWindow.qml b/config/quickshell/modules/overview/OverviewWindow.qml
index 449a98c4..93ea06f9 100644
--- a/config/quickshell/modules/overview/OverviewWindow.qml
+++ b/config/quickshell/modules/overview/OverviewWindow.qml
@@ -18,8 +18,8 @@ Rectangle { // Window
property var availableWorkspaceWidth
property var availableWorkspaceHeight
property bool restrictToWorkspace: true
- property real initX: Math.max((windowData?.at[0] - monitorData?.reserved[0]) * root.scale, 0) + xOffset
- property real initY: Math.max((windowData?.at[1] - monitorData?.reserved[1]) * root.scale, 0) + yOffset
+ property real initX: Math.max((windowData?.at[0] - monitorData?.reserved[0] - monitorData?.x) * root.scale, 0) + xOffset
+ property real initY: Math.max((windowData?.at[1] - monitorData?.reserved[1] - monitorData?.y) * root.scale, 0) + yOffset
property real xOffset: 0
property real yOffset: 0
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage