[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/exwm 98c8fd4 1/2: Improve multi-monitor performance
From: |
Chris Feng |
Subject: |
[elpa] externals/exwm 98c8fd4 1/2: Improve multi-monitor performance |
Date: |
Thu, 1 Mar 2018 11:57:32 -0500 (EST) |
branch: externals/exwm
commit 98c8fd4bc5b819501e90cfe9b7e7e25de5cc35ea
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>
Improve multi-monitor performance
* exwm-randr.el (exwm-randr--refresh): Use GetScreenResourcesCurrent
instead of GetScreenResources to avoid polling hardware changes.
(exwm-randr--init): GetScreenResourcesCurrent requires RandR 1.3 .
---
exwm-randr.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/exwm-randr.el b/exwm-randr.el
index a3593ec..c1d2bf5 100644
--- a/exwm-randr.el
+++ b/exwm-randr.el
@@ -97,7 +97,7 @@ the first one in result being the primary output."
;; Query all outputs
(with-slots (config-timestamp outputs)
(xcb:+request-unchecked+reply exwm--connection
- (make-instance 'xcb:randr:GetScreenResources
+ (make-instance 'xcb:randr:GetScreenResourcesCurrent
:window exwm--root))
(dolist (output outputs)
(with-slots (crtc connection name)
@@ -178,8 +178,8 @@ the first one in result being the primary output."
(with-slots (major-version minor-version)
(xcb:+request-unchecked+reply exwm--connection
(make-instance 'xcb:randr:QueryVersion
- :major-version 1 :minor-version 2))
- (if (or (/= major-version 1) (< minor-version 2))
+ :major-version 1 :minor-version 3))
+ (if (or (/= major-version 1) (< minor-version 3))
(error "[EXWM] The server only support RandR version up to %d.%d"
major-version minor-version)
;; External monitor(s) may already be connected.