aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMewlkor <gruss221@gmail.com>2025-07-27 23:34:50 +0200
committerMewlkor <gruss221@gmail.com>2025-07-27 23:38:55 +0200
commit1fbd9753ca36d1aae4a265284073a892703193bb (patch)
treefc835bec717a2ded521806b501a2d932902dac16
parent71be8d527dadb784d87c48786d78dc6d2a5c96ca (diff)
fix: fix window position not using correct monitor, fix scaling of windows on monitors with non 1.0 scale
-rw-r--r--config/quickshell/modules/overview/OverviewWidget.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/quickshell/modules/overview/OverviewWidget.qml b/config/quickshell/modules/overview/OverviewWidget.qml
index 22cf929e..93e90967 100644
--- a/config/quickshell/modules/overview/OverviewWidget.qml
+++ b/config/quickshell/modules/overview/OverviewWidget.qml
@@ -239,8 +239,8 @@ Item {
delegate: OverviewWindow {
id: window
windowData: windowByAddress[modelData]
- monitorData: root.monitorData
- scale: root.scale
+ monitorData: HyprlandData.monitors.find(m => m.id === windowData?.monitor) // use monitorData of the monitor the window is on
+ scale: root.scale * (monitorData?.scale / root.monitor?.scale) // adjust window scale to the monitor where the overview is displayed
availableWorkspaceWidth: root.workspaceImplicitWidth
availableWorkspaceHeight: root.workspaceImplicitHeight
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage