summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xrandr.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/xrandr.c b/xrandr.c
index f9d9e06..413ea7b 100644
--- a/xrandr.c
+++ b/xrandr.c
@@ -1438,6 +1438,15 @@ 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
+ */
+ if (grab_server)
+ XGrabServer (dpy);
+
+ /*
* Turn off any crtcs which are to be disabled or which are
* larger than the target size
*/
@@ -1484,15 +1493,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
- */
- if (grab_server)
- XGrabServer (dpy);
-
- /*
* Set the screen size
*/
screen_apply ();