don't crash when using <raise> and alt-tab and there are no windows to cycle between
This commit is contained in:
parent
87fd759ba9
commit
265bdd4660
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue