[Xfce4-commits] [apps/ristretto] 01/01: Prepare for gtk3 migration: Do not use GDK_DISPLAY()

noreply at xfce.org noreply at xfce.org
Tue Sep 20 10:50:22 CEST 2016


This is an automated email from the git hooks/post-receive script.

f2404 pushed a commit to branch master
in repository apps/ristretto.

commit 2fb7e97f941a492d3e6ae8c2eef7bdc4aa2094d8
Author: Igor <f2404 at yandex.ru>
Date:   Tue Sep 20 11:50:15 2016 +0300

    Prepare for gtk3 migration: Do not use GDK_DISPLAY()
---
 src/xfce_wallpaper_manager.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/xfce_wallpaper_manager.c b/src/xfce_wallpaper_manager.c
index ef72250..2c4826c 100644
--- a/src/xfce_wallpaper_manager.c
+++ b/src/xfce_wallpaper_manager.c
@@ -189,11 +189,12 @@ rstto_xfce_wallpaper_manager_check_running (RsttoWallpaperManager *self)
     Atom xfce_selection_atom;
     GdkScreen *gdk_screen = gdk_screen_get_default();
     gint xscreen = gdk_screen_get_number(gdk_screen);
+    Display *gdk_display = gdk_x11_get_default_xdisplay();
 
     g_snprintf(selection_name, 100, XFDESKTOP_SELECTION_FMT, xscreen);
 
     xfce_selection_atom = XInternAtom (gdk_display, selection_name, False);
-    if((XGetSelectionOwner(GDK_DISPLAY(), xfce_selection_atom)))
+    if((XGetSelectionOwner(gdk_display, xfce_selection_atom)))
     {
         return TRUE;
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list