don't crash when using <raise> and alt-tab and there are no windows to cycle between
Dana Jansens danakj@orodu.net
2 files changed,
2 insertions(+),
2 deletions(-)
M
openbox/actions/cyclewindows.c
→
openbox/actions/cyclewindows.c
@@ -130,7 +130,7 @@ FALSE, FALSE);
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; }
M
openbox/actions/directionalwindows.c
→
openbox/actions/directionalwindows.c
@@ -152,7 +152,7 @@ FALSE, FALSE);
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;