fix(display): skip mirror/extend if already in requested state

mirror_displays() now checks CGDisplayMirrorsDisplay() for each secondary
before calling CGBeginDisplayConfiguration — avoids a needless display
reconfiguration (and potential flicker) when already mirrored.
extend_displays() already had this check; no change needed there.
This commit is contained in:
Scott Idem
2026-05-20 18:24:33 -04:00
parent 58060aea8a
commit 6cddd69891
2 changed files with 11 additions and 0 deletions

Binary file not shown.