screenshot tool: fix interactivity of floating windows being behind tiled

This commit is contained in:
end-4
2025-09-28 18:16:14 +02:00
parent 7876ab993a
commit ccab724db2
+5 -1
View File
@@ -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