[Xfce4-commits] <xfce4-settings:master> Switch to gdk function to grab/ungrab the server

Nick Schermer noreply at xfce.org
Sun Oct 28 10:45:14 CET 2012


Updating branch refs/heads/master
         to 46eb5cbcb513aac30fa009fd50fca36de1a922fc (commit)
       from 6b51b394691ddcde8bdad2c49dcc5cfe53d844b2 (commit)

commit 46eb5cbcb513aac30fa009fd50fca36de1a922fc
Author: Lionel Le Folgoc <lionel at lefolgoc.net>
Date:   Thu Oct 18 14:29:44 2012 +0200

    Switch to gdk function to grab/ungrab the server
    
    Signed-off-by: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>

 xfsettingsd/displays.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/xfsettingsd/displays.c b/xfsettingsd/displays.c
index 2517057..5af8614 100644
--- a/xfsettingsd/displays.c
+++ b/xfsettingsd/displays.c
@@ -726,7 +726,7 @@ xfce_displays_helper_channel_apply (XfceDisplaysHelper *helper,
     }
 
     /* grab server to prevent clients from thinking no output is enabled */
-    XGrabServer (xdisplay);
+    gdk_x11_display_grab (display);
 
     /* second loop, normalization and global settings */
     for (m = 0; m < resources->ncrtc; ++m)
@@ -786,7 +786,7 @@ xfce_displays_helper_channel_apply (XfceDisplaysHelper *helper,
     }
 
     /* release the grab, changes are done */
-    XUngrabServer (xdisplay);
+    gdk_x11_display_ungrab (display);
 
 err_cleanup:
     /* Free the xfconf properties */


More information about the Xfce4-commits mailing list