From d261b6fcda7ede7455fbc87735ee7187bed8f18d Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Fri, 21 Jun 2024 20:08:43 +0100 Subject: [PATCH] event: check for masked window in ev_create_notify If a window is masked, we don't care if it has new children. Silence some spurious error messages. Signed-off-by: Yuxuan Shui --- src/event.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/event.c b/src/event.c index b55f7a1e2d..7c81e06b46 100644 --- a/src/event.c +++ b/src/event.c @@ -204,6 +204,9 @@ static inline void ev_focus_out(session_t *ps, xcb_focus_out_event_t *ev) { } static inline void ev_create_notify(session_t *ps, xcb_create_notify_event_t *ev) { + if (wm_is_wid_masked(ps->wm, ev->parent)) { + return; + } wm_import_incomplete(ps->wm, ev->window, ev->parent); }