mirror of
https://github.com/DeeJanuz/frametop.git
synced 2026-10-25 07:00:49 +01:00
The long poll had one failure mode: if NextCommand's reply never arrives (ft-floatd dying mid-call, a D-Bus hiccup), polling stays set and the script never hears a command again until KWin reloads it — float and dock buttons go dead. A single-shot watchdog (ft-floatd's POLL_SECONDS plus 10 s of slack) re-arms the poll if the reply is late; it doubles as a retry while ft-floatd is down at startup. To see it on the Frame: float a window, 'pkill -9 -x ft-floatd', start ft-floatd again, and float another one within half a minute — before, the second float was ignored until the desktop restarted.