[herbstluftwm] Fix hlwm-run-or-raise
It was working fine, but when there is only a single window there is no second one to get.
This commit is contained in:
parent
ce74016324
commit
4e500192eb
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ exec scsh -s "$0" "$@"
|
|||
|
||||
(if (not (null? window-ids))
|
||||
(let ((next-window
|
||||
(if (member current-window-id window-ids)
|
||||
(if (and (> (length window-ids) 1)
|
||||
(member current-window-id window-ids))
|
||||
(cadr (pull-element-to-front current-window-id window-ids))
|
||||
(car window-ids))))
|
||||
(run (hlwm-switch-to-window ,next-window)))
|
||||
|
|
Loading…
Reference in a new issue