Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3088ae3
)
use XRRGetScreenResourcesCurrent instead.
author
David Hill
<dhill@conformal.com>
Mon, 9 Jul 2012 21:21:43 +0000
(17:21 -0400)
committer
David Hill
<dhill@conformal.com>
Mon, 9 Jul 2012 21:21:43 +0000
(17:21 -0400)
XRRGetScreenResourcesCurrent is cheaper: no hardware polling.
This seems to fix my garbaled console too.
spectrwm.c
patch
|
blob
|
history
diff --git
a/spectrwm.c
b/spectrwm.c
index
bc3e1fd
..
9faa4aa
100644
(file)
--- a/
spectrwm.c
+++ b/
spectrwm.c
@@
-7158,7
+7158,7
@@
scan_xrandr(int i)
/* map virtual screens onto physical screens */
#ifdef SWM_XRR_HAS_CRTC
if (xrandr_support) {
- sr = XRRGetScreenResources(display, screens[i].root);
+ sr = XRRGetScreenResourcesCurrent(display, screens[i].root);
if (sr == NULL)
new_region(&screens[i], 0, 0,
DisplayWidth(display, i),