From: Dana Jansens Date: Fri, 1 Feb 2008 06:56:37 +0000 (-0500) Subject: don't crash when using and alt-tab and there are no windows to cycle between X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=265bdd46605367e1cb35dcd9d8ff2c98fae70166;p=chaz%2Fopenbox don't crash when using and alt-tab and there are no windows to cycle between --- diff --git a/openbox/actions/cyclewindows.c b/openbox/actions/cyclewindows.c index 059db93f..cb341af7 100644 --- a/openbox/actions/cyclewindows.c +++ b/openbox/actions/cyclewindows.c @@ -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; } diff --git a/openbox/actions/directionalwindows.c b/openbox/actions/directionalwindows.c index c575d84e..55c9e606 100644 --- a/openbox/actions/directionalwindows.c +++ b/openbox/actions/directionalwindows.c @@ -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;