From 16e17df1a157a4cd9d25d1b932b74884dbbb6ff9 Mon Sep 17 00:00:00 2001 From: Suyooo Date: Sat, 28 Sep 2024 11:02:04 +0200 Subject: [PATCH] core: Fix root configure event being ignored 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 --- src/event.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/event.c b/src/event.c index be9df40a48..a2d4faa62b 100644 --- a/src/event.c +++ b/src/event.c @@ -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); } }