don't crash when using <raise> and alt-tab and there are no windows to cycle between
[mikachu/openbox.git] / openbox / actions / directionalwindows.c
index c575d84..55c9e60 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;