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:
Manuel Giraud 2024-07-18 12:19:46 +00:00 committed by GitHub
parent 770520cf97
commit f00b5ca655
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -305,11 +305,10 @@ 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))) ((= subCode xcb:randr:Notify:OutputChange)
(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
(when (> timestamp exwm-randr--last-timestamp) (when (> timestamp exwm-randr--last-timestamp)