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 4764e1805d
commit 76fcb473fa
2 changed files with 2 additions and 2 deletions

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

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