File xrandr-bnc518702-grab-server.diff of Package xorg-x11

From 17f6daff55ec9d3030a0b391d164267e3e895942 Mon Sep 17 00:00:00 2001
From: Federico Mena Quintero <federico@novell.com>
Date: Mon, 20 Jul 2009 16:55:18 -0500
Subject: [PATCH] bfo#22864, bnc#518702 - Grab the X server while applying all changes to the RANDR configuration

Signed-off-by: Federico Mena Quintero <federico@novell.com>
---
 xrandr.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/xrandr.c b/xrandr.c
index e2a657f..ec3ec1b 100644
--- a/xrandr.c
+++ b/xrandr.c
@@ -1058,6 +1058,14 @@ apply (void)
     int	    c;
     
     /*
+     * Hold the server grabbed while messing with
+     * the screen so that apps which notice the resize
+     * event and ask for xinerama information from the server
+     * receive up-to-date information
+     */
+    XGrabServer (dpy);
+    
+    /*
      * Turn off any crtcs which are to be disabled or which are
      * larger than the target size
      */
@@ -1099,14 +1107,6 @@ apply (void)
     }
 
     /*
-     * Hold the server grabbed while messing with
-     * the screen so that apps which notice the resize
-     * event and ask for xinerama information from the server
-     * receive up-to-date information
-     */
-    XGrabServer (dpy);
-    
-    /*
      * Set the screen size
      */
     screen_apply ();
-- 
1.6.0.2

openSUSE Build Service is sponsored by