]> Dogcows Code - chaz/openbox/commitdiff
add a (temporary?) check to client_activate to make client_list_menu not crash openbo...
authorMikael Magnusson <mikachu@comhem.se>
Mon, 25 Jul 2005 14:15:16 +0000 (14:15 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Mon, 25 Jul 2005 14:15:16 +0000 (14:15 +0000)
openbox/client.c

index 59622c3d6e3bfc3031e85a071befe9b98c2cc74c..4d6a580797f68d8a1bdbc62a134e5f7dd765e6ee 100644 (file)
@@ -2788,6 +2788,9 @@ void client_unfocus(ObClient *self)
 
 void client_activate(ObClient *self, gboolean here)
 {
+    /* This check is for the client_list_menu trying to activate
+     * a closed client. */
+    if (!g_list_find(client_list, self)) return;
     if (client_normal(self) && screen_showing_desktop)
         screen_show_desktop(FALSE);
     if (self->iconic)
This page took 0.029101 seconds and 4 git commands to generate.