summaryrefslogtreecommitdiff
path: root/maximus/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'maximus/main.c')
-rw-r--r--maximus/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/maximus/main.c b/maximus/main.c
index b271cd2..267cc0a 100644
--- a/maximus/main.c
+++ b/maximus/main.c
@@ -64,6 +64,7 @@ gint main (gint argc, gchar *argv[])
MaximusApp UNUSED_VARIABLE *app;
GOptionContext *context;
GError *error = NULL;
+ GdkDisplay *gdk_display = gdk_display_get_default ();
g_set_application_name ("Maximus");
@@ -89,9 +90,9 @@ gint main (gint argc, gchar *argv[])
g_option_context_parse (context, &argc, &argv, NULL);
g_option_context_free(context);
- gdk_error_trap_push ();
+ gdk_x11_display_error_trap_push (gdk_display);
app = maximus_app_get_default ();
- gdk_error_trap_pop_ignored ();
+ gdk_x11_display_error_trap_pop_ignored (gdk_display);
gtk_main ();