diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-10-09 18:48:44 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-10-09 18:48:44 +0000 |
| commit | 8e34732b3a6d19c64addc6e7f8cdc7bbf6293f1f (patch) | |
| tree | 00fa2c349bd9f77370b0224754aa8e7c228fba81 /openbox | |
| parent | df436132bda79134e822fd56a896ed28cdc289e0 (diff) | |
let stuff cancel any focus delays going on
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/event.c | 5 | ||||
| -rw-r--r-- | openbox/event.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/openbox/event.c b/openbox/event.c index 93cdf0b2..cd0163f2 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1199,6 +1199,11 @@ static void focus_delay_client_dest(ObClient *client, gpointer data) 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; diff --git a/openbox/event.h b/openbox/event.h index 5d8600a8..0da09789 100644 --- a/openbox/event.h +++ b/openbox/event.h @@ -43,4 +43,8 @@ void event_enter_client(struct _ObClient *client); 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 |
