diff options
author | Samuel Fadel <samuel@nihil.ws> | 2022-12-04 12:32:13 +0100 |
---|---|---|
committer | Samuel Fadel <samuel@nihil.ws> | 2022-12-04 12:32:13 +0100 |
commit | f5cb5e5cf8a3b410a4afda52f925e84432ca2ac8 (patch) | |
tree | cb9ea8a97dfd345baa82b5bccf3804707de892d3 /wm.scm | |
parent | da3523b11bcb174dac02fbfabfa58ed6b78a8622 (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 'wm.scm')
-rw-r--r-- | wm.scm | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1,7 +1,7 @@ (define-module (wm) #:use-module (system foreign) #:export (wm-init - wm-set-configure-notify-handler! + wm-set-key-press-handler! wm-run wm-quit)) @@ -28,14 +28,16 @@ (define wm-run (schewm-func void "wm_run" '())) -(define c/wm-set-configure-notify-handler +(define c/wm-set-key-press-handler (schewm-func void - "wm_set_configure_notify_handler" + "wm_set_key_press_handler" (list '*))) -(define (wm-set-configure-notify-handler! handler) - (c/wm-set-configure-notify-handler +(define (wm-set-key-press-handler! handler) + ;; mod (state, uint16) + ;; keysym (detail, uint8) + (c/wm-set-key-press-handler (procedure->pointer void handler - (list int16 int16 uint32 uint32)))) + (list uint16 uint8)))) |