picker: fix client rects

This commit is contained in:
2 * r + 2 * t 2025-06-30 17:56:02 +10:00
parent 0d7804f677
commit 61bc2b0fb8

View file

@ -36,7 +36,7 @@ MouseArea {
property real sw: Math.abs(sx - ex) property real sw: Math.abs(sx - ex)
property real sh: Math.abs(sy - ey) property real sh: Math.abs(sy - ey)
property list<var> clients: Hyprland.toplevels.values.filter(c => c.workspace.id === Hyprland.activeWsId).sort((a, b) => { property list<var> clients: Hyprland.toplevels.values.filter(c => c.workspace?.id === Hyprland.activeWsId).sort((a, b) => {
// Pinned first, then floating, then any other // Pinned first, then floating, then any other
if (a.lastIpcObject.pinned === b.lastIpcObject.pinned) if (a.lastIpcObject.pinned === b.lastIpcObject.pinned)
return a.lastIpcObject.floating === b.lastIpcObject.floating ? 0 : a.lastIpcObject.floating ? -1 : 1; return a.lastIpcObject.floating === b.lastIpcObject.floating ? 0 : a.lastIpcObject.floating ? -1 : 1;