]> Dogcows Code - chaz/openbox/commitdiff
don't crash when using <raise> and alt-tab and there are no windows to cycle between
authorDana Jansens <danakj@orodu.net>
Fri, 1 Feb 2008 06:56:37 +0000 (01:56 -0500)
committerDana Jansens <danakj@orodu.net>
Tue, 5 Feb 2008 17:32:46 +0000 (12:32 -0500)
openbox/actions/cyclewindows.c
openbox/actions/directionalwindows.c

index 059db93f9ccf3900b960e3e28ab1a9a7d1985413..cb341af7e1f679d9f75b2e5b4611aee40a85f4d7 100644 (file)
@@ -134,7 +134,7 @@ static gboolean run_func(ObActionsData *data, gpointer options)
     cycling = TRUE;
 
     stacking_restore();
-    if (o->raise) stacking_temp_raise(CLIENT_AS_WINDOW(ft));
+    if (o->raise && ft) stacking_temp_raise(CLIENT_AS_WINDOW(ft));
 
     return TRUE;
 }
index c575d84e2d056b5ae99fa21b12046d1839d07757..55c9e606a6591727804cbb48a19c1099bf33bc6a 100644 (file)
@@ -156,7 +156,7 @@ static gboolean run_func(ObActionsData *data, gpointer options)
         cycling = TRUE;
 
         stacking_restore();
-        if (o->raise) stacking_temp_raise(CLIENT_AS_WINDOW(ft));
+        if (o->raise && ft) stacking_temp_raise(CLIENT_AS_WINDOW(ft));
     }
 
     return o->interactive;
This page took 0.02723 seconds and 4 git commands to generate.