aboutsummaryrefslogtreecommitdiffstats
path: root/herbstluftwm
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-06-16 20:42:22 -0700
committerGravatar Tom Willemse2022-06-27 09:17:45 -0700
commit4e500192ebaea058ab41e4afb7442ac7adb7c40c (patch)
tree790a2202798f834cd5fad51ef4eeb84dac6c38e8 /herbstluftwm
parentce74016324840574b9066b37cf9cb116b63c3d15 (diff)
downloadnew-dotfiles-4e500192ebaea058ab41e4afb7442ac7adb7c40c.tar.gz
new-dotfiles-4e500192ebaea058ab41e4afb7442ac7adb7c40c.zip
[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.
Diffstat (limited to 'herbstluftwm')
-rwxr-xr-xherbstluftwm/usr/bin/hlwm-run-or-raise3
1 files changed, 2 insertions, 1 deletions
diff --git a/herbstluftwm/usr/bin/hlwm-run-or-raise b/herbstluftwm/usr/bin/hlwm-run-or-raise
index 0657088..6fe23c8 100755
--- a/herbstluftwm/usr/bin/hlwm-run-or-raise
+++ b/herbstluftwm/usr/bin/hlwm-run-or-raise
@@ -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)))