summaryrefslogtreecommitdiff
path: root/wm.scm
diff options
context:
space:
mode:
authorSamuel Fadel <samuel@nihil.ws>2022-12-21 22:37:36 +0100
committerSamuel Fadel <samuel@nihil.ws>2022-12-21 22:37:36 +0100
commit475f4dc3d514edef85633999809bb028aff01b97 (patch)
tree0e44a699c02670cca0732b7eeac9a07fbed32e16 /wm.scm
parente48ed1e15400fcc42c513870f84bca5277cc1579 (diff)
Fix border drawing in tile toggling functions & launcher impl.
* init.scm: Launcher impl and helpers * wm.scm: Launcher with fork & execlp (execvp) * schewm.c: Fix border by explicitly calling border drawing proc after restoring window size
Diffstat (limited to 'wm.scm')
-rw-r--r--wm.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/wm.scm b/wm.scm
index d178770..40b5d1d 100644
--- a/wm.scm
+++ b/wm.scm
@@ -11,6 +11,7 @@
wm-grab-key-with-mod
wm-grab-key-with-mod-shift
wm-set-key-press-handler!
+ wm-exec-cmd
wm-focus-prev
wm-focus-next
wm-focus-close
@@ -240,3 +241,7 @@
(procedure->pointer void
handler
(list uint16 uint32))))
+
+(define (wm-exec-cmd . args)
+ (when (eq? (primitive-fork) 0)
+ (apply execlp (cons (car args) args))))