mirror of
https://github.com/emacs-exwm/exwm.git
synced 2024-11-23 13:07:59 +01:00
Fix on-Notify (#71)
`cl-case' matches symbols directly but xcb:randr:Notify:* are variables. This likely never worked. * exwm-randr.el (exwm-randr--on-Notify): replace cond with cl-case.
This commit is contained in:
parent
770520cf97
commit
f00b5ca655
1 changed files with 4 additions and 5 deletions
|
@ -305,10 +305,9 @@ Refresh when any CRTC/output changes."
|
|||
notify)
|
||||
(xcb:unmarshal evt data)
|
||||
(with-slots (subCode u) evt
|
||||
(cl-case subCode
|
||||
(xcb:randr:Notify:CrtcChange
|
||||
(cond ((= subCode xcb:randr:Notify:CrtcChange)
|
||||
(setq notify (slot-value u 'cc)))
|
||||
(xcb:randr:Notify:OutputChange
|
||||
((= subCode xcb:randr:Notify:OutputChange)
|
||||
(setq notify (slot-value u 'oc))))
|
||||
(when notify
|
||||
(with-slots (timestamp) notify
|
||||
|
|
Loading…
Reference in a new issue