Skip to content

Commit

Permalink
event: ignore configure events for the overlay window
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Jun 21, 2024
1 parent b1d5373 commit d0ee47f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ static void configure_win(session_t *ps, xcb_configure_notify_event_t *ce) {
static inline void ev_configure_notify(session_t *ps, xcb_configure_notify_event_t *ev) {
log_debug("{ event: %#010x, id: %#010x, above: %#010x, override_redirect: %d }",
ev->event, ev->window, ev->above_sibling, ev->override_redirect);

if (ps->overlay && ev->window == ps->overlay) {
return;

Check warning on line 284 in src/event.c

View check run for this annotation

Codecov / codecov/patch

src/event.c#L284

Added line #L284 was not covered by tests
}

if (ev->window == ps->c.screen_info->root) {
set_root_flags(ps, ROOT_FLAGS_CONFIGURED);
} else if (!wm_is_wid_masked(ps->wm, ev->event)) {
Expand Down

0 comments on commit d0ee47f

Please sign in to comment.