let stuff cancel any focus delays going on
Dana Jansens danakj@orodu.net
2 files changed,
9 insertions(+),
0 deletions(-)
M
openbox/event.c
→
openbox/event.c
@@ -1199,6 +1199,11 @@ {
ob_main_loop_timeout_remove_data(ob_main_loop, focus_delay_func, client); } +void event_halt_focus_delay() +{ + ob_main_loop_timeout_remove(ob_main_loop, focus_delay_func); +} + void event_ignore_queued_enters() { GSList *saved = NULL, *it;
M
openbox/event.h
→
openbox/event.h
@@ -43,4 +43,8 @@ /*! Request that any queued EnterNotify events not be used for distributing
focus */ void event_ignore_queued_enters(); +/* Halts any focus delay in progress, use this when the user is selecting a + window for focus */ +void event_halt_focus_delay(); + #endif