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,11 +305,10 @@ Refresh when any CRTC/output changes."
|
|||
notify)
|
||||
(xcb:unmarshal evt data)
|
||||
(with-slots (subCode u) evt
|
||||
(cl-case subCode
|
||||
(xcb:randr:Notify:CrtcChange
|
||||
(setq notify (slot-value u 'cc)))
|
||||
(xcb:randr:Notify:OutputChange
|
||||
(setq notify (slot-value u 'oc))))
|
||||
(cond ((= subCode xcb:randr:Notify:CrtcChange)
|
||||
(setq notify (slot-value u 'cc)))
|
||||
((= subCode xcb:randr:Notify:OutputChange)
|
||||
(setq notify (slot-value u 'oc))))
|
||||
(when notify
|
||||
(with-slots (timestamp) notify
|
||||
(when (> timestamp exwm-randr--last-timestamp)
|
||||
|
|
Loading…
Reference in a new issue