mirror of
https://github.com/emacs-exwm/exwm.git
synced 2024-11-27 14:57: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)
|
notify)
|
||||||
(xcb:unmarshal evt data)
|
(xcb:unmarshal evt data)
|
||||||
(with-slots (subCode u) evt
|
(with-slots (subCode u) evt
|
||||||
(cl-case subCode
|
(cond ((= subCode xcb:randr:Notify:CrtcChange)
|
||||||
(xcb:randr:Notify:CrtcChange
|
|
||||||
(setq notify (slot-value u 'cc)))
|
(setq notify (slot-value u 'cc)))
|
||||||
(xcb:randr:Notify:OutputChange
|
((= subCode xcb:randr:Notify:OutputChange)
|
||||||
(setq notify (slot-value u 'oc))))
|
(setq notify (slot-value u 'oc))))
|
||||||
(when notify
|
(when notify
|
||||||
(with-slots (timestamp) notify
|
(with-slots (timestamp) notify
|
||||||
|
|
Loading…
Reference in a new issue