[Xfce4-commits] [apps/xfce4-screensaver] 110/425: Improvements for GTK3

noreply at xfce.org noreply at xfce.org
Mon Oct 15 01:49:17 CEST 2018


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

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit 79db828acd87190c9c7e1b91bde4b6ec4322224f
Author: Stefano Karapetsas <stefano at karapetsas.com>
Date:   Tue Nov 12 23:56:34 2013 +0100

    Improvements for GTK3
---
 src/gs-visual-gl.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/gs-visual-gl.c b/src/gs-visual-gl.c
index 8a779e3..e1f2cc1 100644
--- a/src/gs-visual-gl.c
+++ b/src/gs-visual-gl.c
@@ -94,7 +94,7 @@ gs_visual_gl_get_best_for_screen (GdkScreen *screen)
 			vid = XVisualIDFromVisual (vi->visual);
 
 #if GTK_CHECK_VERSION (3, 0, 0)
-			visual = gdk_x11_screen_lookup_visual (gdk_screen_get_default (), vid);
+			visual = gdk_x11_screen_lookup_visual (screen, vid);
 #else
 			visual = gdkx_visual_get (vid);
 #endif
@@ -108,8 +108,12 @@ gs_visual_gl_get_best_for_screen (GdkScreen *screen)
 		}
 	}
 
+#if GTK_CHECK_VERSION (3, 0, 0)
+	gdk_error_trap_pop_ignored ();
+#else
 	gdk_display_sync (display);
 	gdk_error_trap_pop ();
+#endif
 
 #else
 	visual = NULL;

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


More information about the Xfce4-commits mailing list