From ccab724db23de40d50f80dd8818a08bd6131ed5e Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 28 Sep 2025 18:16:14 +0200 Subject: [PATCH] screenshot tool: fix interactivity of floating windows being behind tiled --- .config/quickshell/ii/screenshot.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/quickshell/ii/screenshot.qml b/.config/quickshell/ii/screenshot.qml index ec52aaa33..5c930f0c6 100644 --- a/.config/quickshell/ii/screenshot.qml +++ b/.config/quickshell/ii/screenshot.qml @@ -35,7 +35,11 @@ ShellRoot { property color imageFillColor: "#33f1d1ff" property color onBorderColor: "#ff000000" property real standardRounding: 4 - readonly property var windows: HyprlandData.windowList + readonly property var windows: [...HyprlandData.windowList].sort((a, b) => { + // Sort floating=true windows before others + if (a.floating === b.floating) return 0; + return a.floating ? -1 : 1; + }) readonly property var layers: HyprlandData.layers readonly property real falsePositivePreventionRatio: 0.5