]> 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>
Fri, 1 Feb 2008 06:56:37 +0000 (01:56 -0500)
openbox/actions/cyclewindows.c
openbox/actions/directionalwindows.c

index 672c9d00fc83bb7b4b6c0b2109cb0d3e0909d1da..36dd66ee4c6c635111fdcea9d4e5b0cfc585c614 100644 (file)
@@ -130,7 +130,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 b512fa2440bb71ae76d1a11d183f63720ac02612..c5c25c11329b0aa7768df61a60f0c55597069fab 100644 (file)
@@ -152,7 +152,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.024753 seconds and 4 git commands to generate.