]> Dogcows Code - chaz/openbox/commitdiff
properly handle clients disappearing during delayed focus on them
authorDana Jansens <danakj@orodu.net>
Sun, 22 Apr 2007 02:35:22 +0000 (02:35 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 22 Apr 2007 02:35:22 +0000 (02:35 +0000)
openbox/event.c

index 8329f0287b3c35c94b49e52f84c32ae88b3daacf..9c7f9cbc7848649b0f048a0b9e7c894db1738e24 100644 (file)
@@ -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)
This page took 0.027242 seconds and 4 git commands to generate.