From: Dana Jansens Date: Sun, 22 Apr 2007 02:35:22 +0000 (+0000) Subject: properly handle clients disappearing during delayed focus on them X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;ds=inline;h=98b021ff0cc1bb8e5e6e159b9ee1b62a842ed7b8;p=chaz%2Fopenbox properly handle clients disappearing during delayed focus on them --- diff --git a/openbox/event.c b/openbox/event.c index 8329f028..9c7f9cbc 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1352,8 +1352,8 @@ static gboolean focus_delay_func(gpointer data) static void focus_delay_client_dest(ObClient *client, gpointer data) { - ob_main_loop_timeout_remove_data(ob_main_loop, focus_delay_func, - client, TRUE); + if (focus_delay_data.client == client) + ob_main_loop_timeout_remove(ob_main_loop, focus_delay_func); } static void event_client_dest(ObClient *client, gpointer data)