From eb03540f077e40956544234451975001ab2fa4f0 Mon Sep 17 00:00:00 2001 From: infirit Date: Mon, 3 Aug 2015 21:00:00 +0200 Subject: xutils: We can use gdk_display_get_default in both Gtk versions --- maximus/xutils.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'maximus') diff --git a/maximus/xutils.c b/maximus/xutils.c index b082ced..1ca894a 100644 --- a/maximus/xutils.c +++ b/maximus/xutils.c @@ -43,11 +43,7 @@ _wnck_error_trap_push (void) int _wnck_error_trap_pop (void) { -#if GTK_CHECK_VERSION (3, 0, 0) XSync (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), False); -#else - XSync (gdk_display, False); -#endif return gdk_error_trap_pop (); } @@ -82,11 +78,7 @@ _wnck_get_wmclass (Window xwindow, ch.res_name = NULL; ch.res_class = NULL; -#if GTK_CHECK_VERSION (3, 0, 0) XGetClassHint (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), -#else - XGetClassHint (gdk_display, -#endif xwindow, &ch); -- cgit v1.2.1