From 92910b6b2dd0b75bcc99e30eb660742168cef6ce Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Mon, 7 Jan 2019 01:32:05 +0100 Subject: avoid deprecated 'gdk_error_trap_push/pop/pop_ignored' and 'gdk_flush' --- maximus/xutils.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'maximus/xutils.c') diff --git a/maximus/xutils.c b/maximus/xutils.c index 1ca894a..85b09e6 100644 --- a/maximus/xutils.c +++ b/maximus/xutils.c @@ -37,14 +37,15 @@ void _wnck_error_trap_push (void) { - gdk_error_trap_push (); + gdk_x11_display_error_trap_push (gdk_display_get_default ()); } int _wnck_error_trap_pop (void) { - XSync (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), False); - return gdk_error_trap_pop (); + GdkDisplay *gdk_display = gdk_display_get_default (); + XSync (GDK_DISPLAY_XDISPLAY (gdk_display), False); + return gdk_x11_display_error_trap_pop (gdk_display); } static char* -- cgit v1.2.1