From 50eae43ca28fb70aa50fd31b664ded0c03cdd9e0 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 30 Jun 2025 13:12:52 +0200 Subject: [PATCH] screenshot: fix content regions on scaled monitors (#1539) --- .config/quickshell/screenshot.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/quickshell/screenshot.qml b/.config/quickshell/screenshot.qml index 9312aa238..f544f36bb 100644 --- a/.config/quickshell/screenshot.qml +++ b/.config/quickshell/screenshot.qml @@ -499,10 +499,10 @@ ShellRoot { animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this) } - x: modelData.at[0] - y: modelData.at[1] - width: modelData.size[0] - height: modelData.size[1] + x: modelData.at[0] / panelWindow.monitorScale + y: modelData.at[1] / panelWindow.monitorScale + width: modelData.size[0] / panelWindow.monitorScale + height: modelData.size[1] / panelWindow.monitorScale borderColor: root.imageBorderColor fillColor: targeted ? root.imageFillColor : "transparent" border.width: targeted ? 4 : 2