X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=spectrwm.c;h=3215774974c3ef966badeccc2c090661bd783056;hb=608cf20ac790005b49f9f5bed3b944015308da3a;hp=eb03fbd13197b1d19036a12128537e2f31e62e6b;hpb=7398081030dddc580788e3c88f03fa630d76286f;p=spectrwm.git diff --git a/spectrwm.c b/spectrwm.c index eb03fbd..3215774 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -8849,7 +8849,7 @@ screenchange(xcb_randr_screen_change_notify_event_t *e) bar_setup(r); /* Focus on first region. */ - r = TAILQ_FIRST(&screens[0].rl); + r = TAILQ_FIRST(&screens[i].rl); if (r) focus_region(r); }