aboutsummaryrefslogtreecommitdiffstats
path: root/herbstluftwm
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-08-29 15:28:13 +0200
committerGravatar Tom Willemse2016-08-29 15:28:13 +0200
commitecf3ec65339a624aebddd0127c9e4ecd5c01b619 (patch)
treefa5770f0f71b83cc167f16073d42c4b9b4ba53c2 /herbstluftwm
parent7aa25f2a5b66759b27f4bb544e1bfffa142a2ce3 (diff)
downloadnew-dotfiles-ecf3ec65339a624aebddd0127c9e4ecd5c01b619.tar.gz
new-dotfiles-ecf3ec65339a624aebddd0127c9e4ecd5c01b619.zip
Handle not having an active window
Diffstat (limited to 'herbstluftwm')
-rwxr-xr-xherbstluftwm/usr/bin/hlwm-run-or-raise2
1 files changed, 1 insertions, 1 deletions
diff --git a/herbstluftwm/usr/bin/hlwm-run-or-raise b/herbstluftwm/usr/bin/hlwm-run-or-raise
index a06da24..de2dbe1 100755
--- a/herbstluftwm/usr/bin/hlwm-run-or-raise
+++ b/herbstluftwm/usr/bin/hlwm-run-or-raise
@@ -14,7 +14,7 @@
(submatch "0x" (+ hex-digit))
"\n"))
(match (regexp-search re output)))
- (match:substring match 1)))
+ (and match (match:substring match 1))))
(define (pull-element-to-front elt collection)
(if (string= (car collection) elt)