mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-17 23:13:55 +01:00
This prevents a race where OS-initiated minimizes prematurely remove windows that should be transiently restored. Problem: a display-change can trigger a a fast reconciliation path (same count), and shortly after Windows may emit a SystemMinimizeStart for affected windows. The minimize handler treated those as user-initiated and removed the window, making later reconciliation unable to restore it. Fix: timestamp display-change notifications and add a display_change_in_progress(period) check to the minimize handler. While that grace period is active the minimize handler skips remove_window(), preserving windows so the reconciliator can restore them.