at commit 7f2aa7db
| 1 | ;;;; common lisp window manager |
| 2 | ;;;; |
| 3 | ;;;; keybinds that know where the pointer is |
| 4 | ;;;; the convention is (lambda (wm client x y) ...) |
| 5 | |
| 6 | (in-package #:clwm-ext) |
| 7 | |
| 8 | (defclass pointer-keybinds-mixin (keybinds-mixin) () |
| 9 | (:documentation "Keybinds which know where the pointer is, |
| 10 | and what client is under it.")) |
| 11 | |
| 12 | (defmethod call-key-command ((wm pointer-keybinds-mixin) command |
| 13 | &rest e &key root-x root-y) |
| 14 | (funcall command wm (apply #'event-client wm :key-press e) root-x root-y)) |