fix(desktop): give the Hyprland HUD float/pin promotion room for a lagging j/clients
The first map on Hyprland can leave the HUD tiled when `j/clients` does not list the new client within the 8 × 50 ms the promotion loop allowed; the window then stays a stretched transparent tile (#103091). Widen the budget to 24 × 100 ms. The loop returns on the first successful float+pin, so a prompt compositor pays nothing extra. Salvaged from #103116. Its second half (re-promote from focusWindow's re-show branch) is dropped: the HUD is destroyed and respawned on every toggle and is not minimizable, so that branch never runs for it.
This commit is contained in:
committed by
Teknium
parent
7617a91d44
commit
62081b87b7
@@ -28,8 +28,8 @@ type HyprlandDispatchSyntax = 'legacy' | 'lua'
|
||||
|
||||
export type HyprlandRequestFn = (socketPath: string, command: string) => Promise<null | string>
|
||||
|
||||
const DEFAULT_ATTEMPTS = 8
|
||||
const DEFAULT_DELAY_MS = 50
|
||||
const DEFAULT_ATTEMPTS = 24
|
||||
const DEFAULT_DELAY_MS = 100
|
||||
|
||||
let cachedSyntax: null | HyprlandDispatchSyntax = null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user