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

Simon Steinbeiss noreply at xfce.org
Thu Oct 18 23:38:14 CEST 2012


Updating branch refs/heads/bluesabre/display-settings
         to ae5c5d0fc5b730fd1ca0538de105aae0f02c3933 (commit)
       from 474ddceaeaf57cec633dd0dc9a8317712c5f2af0 (commit)

commit ae5c5d0fc5b730fd1ca0538de105aae0f02c3933
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