mirror of
https://github.com/vale981/spectrwm
synced 2025-03-05 09:51:38 -05:00
Fix issue where rapid window crossing events might get ignored.
This commit is contained in:
parent
214aca697c
commit
9d5207775b
1 changed files with 2 additions and 2 deletions
|
@ -8209,7 +8209,7 @@ enternotify(xcb_enter_notify_event_t *e)
|
||||||
/* If no windows on pointer region, then focus root. */
|
/* If no windows on pointer region, then focus root. */
|
||||||
r = root_to_region(e->root, SWM_CK_POINTER);
|
r = root_to_region(e->root, SWM_CK_POINTER);
|
||||||
if (r == NULL) {
|
if (r == NULL) {
|
||||||
DNPRINTF(SWM_D_EVENT, "enterntoify: "
|
DNPRINTF(SWM_D_EVENT, "enternotify: "
|
||||||
"NULL region; ignoring.\n");
|
"NULL region; ignoring.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -8224,7 +8224,7 @@ enternotify(xcb_enter_notify_event_t *e)
|
||||||
focus_win(get_focus_magic(win));
|
focus_win(get_focus_magic(win));
|
||||||
}
|
}
|
||||||
|
|
||||||
focus_flush();
|
xcb_flush(conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SWM_DEBUG
|
#ifdef SWM_DEBUG
|
||||||
|
|
Loading…
Add table
Reference in a new issue