Skip to content

Commit

Permalink
RandR: don't unset a new monitor's enabled state
Browse files Browse the repository at this point in the history
When setting up new monitors, don't clobber the new state by then
setting it to disabled.
  • Loading branch information
ThomasAdam committed Mar 22, 2024
1 parent 2177643 commit e25d217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/FScreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ scan_screens(Display *dpy)
* active or not. Clearing the MONITOR_FOUND flag is
* important here so that the monitor is reconsidered again.
*/
if (!(m->flags & MONITOR_FOUND)) {
if (!(m->flags & (MONITOR_FOUND|MONITOR_NEW))) {
m->flags |= MONITOR_DISABLED;
m->emit |= MONITOR_DISABLED;
} else if (m->flags & (MONITOR_FOUND|MONITOR_DISABLED)) {
Expand Down

0 comments on commit e25d217

Please sign in to comment.