summaryrefslogtreecommitdiff
path: root/maximus/xutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'maximus/xutils.c')
-rw-r--r--maximus/xutils.c7
1 files changed, 4 insertions, 3 deletions
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*