let stuff cancel any focus delays going on

This commit is contained in:
Dana Jansens 2003-10-09 18:48:44 +00:00
parent df436132bd
commit 8e34732b3a
2 changed files with 9 additions and 0 deletions

View file

@ -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;

View file

@ -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