Skip to content

Commit

Permalink
event: check for masked window in ev_create_notify
Browse files Browse the repository at this point in the history
If a window is masked, we don't care if it has new children. Silence
some spurious error messages.

Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Jun 21, 2024
1 parent 452aa75 commit d261b6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d261b6f

Please sign in to comment.