don't crash when using <raise> and alt-tab and there are no windows to cycle between
This commit is contained in:
parent
4764e1805d
commit
76fcb473fa
2 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ static gboolean run_func(ObActionsData *data, gpointer options)
|
||||||
cycling = TRUE;
|
cycling = TRUE;
|
||||||
|
|
||||||
stacking_restore();
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,7 +152,7 @@ static gboolean run_func(ObActionsData *data, gpointer options)
|
||||||
cycling = TRUE;
|
cycling = TRUE;
|
||||||
|
|
||||||
stacking_restore();
|
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;
|
return o->interactive;
|
||||||
|
|
Loading…
Reference in a new issue