about summary refs log tree commit diff
path: root/exwm-core.el
diff options
context:
space:
mode:
authorSteven Allen <steven@stebalien.com>2024-01-23T23·15-0800
committerDaniel Mendler <mail@daniel-mendler.de>2024-01-24T04·48+0100
commit0e365a00587b961b83de54206a5dc058adadfddf (patch)
treef74eac8f35036c4fee6ab26fa2f9587951e86f52 /exwm-core.el
parent089e0c86830c28d754ec8a812f833b2ab248c6ce (diff)
Use color-values instead of x-color-values
* exwm-core.el (exwm--color->pixel): Use `color-values` (introduced in
  Emacs 21) instead of `x-color-values` (deprecated in Emacs 30).
Diffstat (limited to 'exwm-core.el')
-rw-r--r--exwm-core.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/exwm-core.el b/exwm-core.el
index d159592fc510..e0d644d941ed 100644
--- a/exwm-core.el
+++ b/exwm-core.el
@@ -206,7 +206,7 @@ If FRAME is null, use selected frame."
   "Convert COLOR to PIXEL (index in TrueColor colormap)."
   (when (and color
              (eq (x-display-visual-class) 'true-color))
-    (let ((rgb (x-color-values color)))
+    (let ((rgb (color-values color)))
       (logior (ash (ash (pop rgb) -8) 16)
               (ash (ash (pop rgb) -8) 8)
               (ash (pop rgb) -8)))))