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.brokenzipper.com/gitweb?a=commitdiff_plain;h=76fcb473fa801728badf916cfebe349822759056;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 672c9d00..36dd66ee 100644 --- a/openbox/actions/cyclewindows.c +++ b/openbox/actions/cyclewindows.c @@ -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; } diff --git a/openbox/actions/directionalwindows.c b/openbox/actions/directionalwindows.c index b512fa24..c5c25c11 100644 --- a/openbox/actions/directionalwindows.c +++ b/openbox/actions/directionalwindows.c @@ -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;