X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fhandlers.c;h=ac0fd87ac5e57b477d308526fdf2e33103bd9300;hb=b644fb5f26c1768b70c5b49d8cd917a63a2d1d91;hp=f1c6128b750aa42cffc2bb91978c5cd17403b479;hpb=e913e519f2d36300b8099fa9507461770319a365;p=i3%2Fi3 diff --git a/src/handlers.c b/src/handlers.c index f1c6128b..ac0fd87a 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -896,6 +896,12 @@ static int handle_focus_in(xcb_focus_in_event_t *event) { return 1; DLOG("That is con %p / %s\n", con, con->name); + if (event->mode == XCB_NOTIFY_MODE_GRAB || + event->mode == XCB_NOTIFY_MODE_UNGRAB) { + DLOG("FocusIn event for grab/ungrab, ignoring\n"); + return 1; + } + if (event->detail == XCB_NOTIFY_DETAIL_POINTER) { DLOG("notify detail is pointer, ignoring this event\n"); return 1;