[Spice-devel] [PATCH 2/2] client/x11/platform: use has_xrandr to save some lines

Alon Levy alevy at redhat.com
Mon Nov 14 05:09:43 PST 2011


---
 client/x11/platform.cpp |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp
index c66386d..1001ed8 100644
--- a/client/x11/platform.cpp
+++ b/client/x11/platform.cpp
@@ -2888,12 +2888,7 @@ static void handle_selection_request()
 
 static void root_win_proc(XEvent& event)
 {
-
-#ifdef USE_XRANDR_1_2
-    ASSERT(using_xrandr_1_0 || using_xrandr_1_2);
-#else
-    ASSERT(using_xrandr_1_0);
-#endif
+    ASSERT(has_xrandr());
     if (event.type == ConfigureNotify || event.type - xrandr_event_base == RRScreenChangeNotify) {
         XRRUpdateConfiguration(&event);
         if (event.type - xrandr_event_base == RRScreenChangeNotify) {
-- 
1.7.7.3



More information about the Spice-devel mailing list