From 9c2fd87adbf7aa38a9c1b58954372c20a95bfe77 Mon Sep 17 00:00:00 2001 From: David Hill Date: Mon, 9 Jul 2012 17:21:43 -0400 Subject: [PATCH] use XRRGetScreenResourcesCurrent instead. XRRGetScreenResourcesCurrent is cheaper: no hardware polling. This seems to fix my garbaled console too. --- spectrwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectrwm.c b/spectrwm.c index bc3e1fd..9faa4aa 100644 --- 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), -- 1.7.10.4