don't crash when using <raise> and alt-tab and there are no windows to cycle between

This commit is contained in:
Dana Jansens 2008-02-01 01:56:37 -05:00
parent 87fd759ba9
commit 265bdd4660
2 changed files with 2 additions and 2 deletions

View 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;
}

View 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;