summaryrefslogtreecommitdiff
path: root/main.scm
diff options
context:
space:
mode:
authorSamuel Fadel <samuel@nihil.ws>2022-12-04 12:32:13 +0100
committerSamuel Fadel <samuel@nihil.ws>2022-12-04 12:32:13 +0100
commitf5cb5e5cf8a3b410a4afda52f925e84432ca2ac8 (patch)
treecb9ea8a97dfd345baa82b5bccf3804707de892d3 /main.scm
parentda3523b11bcb174dac02fbfabfa58ed6b78a8622 (diff)
Key grabbing, handling outputs, init clients.
* main.scm: Added key press handler * wm.scm: Added key press handler * schewm.c: Added key grabbing, output management, client initialization (initial grab)
Diffstat (limited to 'main.scm')
-rw-r--r--main.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.scm b/main.scm
index f8ac169..e0647ab 100644
--- a/main.scm
+++ b/main.scm
@@ -11,11 +11,12 @@
(make-config 2 0))
(when (wm-init)
- (wm-set-configure-notify-handler!
- (lambda (x y w h)
- (display (+ x y w h))
+ (wm-set-key-press-handler!
+ (lambda (mod keysym)
+ (display (list mod keysym))
(display "\n")))
(display config)
(display "\n")
(wm-run)
(wm-quit))
+