properly handle clients disappearing during delayed focus on them

This commit is contained in:
Dana Jansens 2007-04-22 02:35:22 +00:00
parent 5009498d59
commit 98b021ff0c

View file

@ -1352,8 +1352,8 @@ static gboolean focus_delay_func(gpointer data)
static void focus_delay_client_dest(ObClient *client, gpointer data) static void focus_delay_client_dest(ObClient *client, gpointer data)
{ {
ob_main_loop_timeout_remove_data(ob_main_loop, focus_delay_func, if (focus_delay_data.client == client)
client, TRUE); ob_main_loop_timeout_remove(ob_main_loop, focus_delay_func);
} }
static void event_client_dest(ObClient *client, gpointer data) static void event_client_dest(ObClient *client, gpointer data)