Skip to content

Commit

Permalink
core: Fix root configure event being ignored
Browse files Browse the repository at this point in the history
The guard added in commit 0aa620 to avoid duplicates filters out all Configure events on the root window, causing picom
to not properly render the screen area after display configuration changes, such as adding or resizing a monitor.

Only apply the guard if the Configure event affects a window other than the root window.

Fixes #1338
  • Loading branch information
Suyooo committed Sep 28, 2024
1 parent 72fce70 commit 1fdc050
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,13 @@ static inline void ev_configure_notify(session_t *ps, xcb_configure_notify_event
return;
}

if (ev->window == ev->event) {
return;
}

if (ev->window == ps->c.screen_info->root) {
configure_root(ps);
} else {
if (ev->window == ev->event) {
return;
}

configure_win(ps, ev);
}
}
Expand Down

0 comments on commit 1fdc050

Please sign in to comment.