Skip to content
Permalink
Browse files

maximus: Fix 'Segmentation fault'

Fixes #46
  • Loading branch information...
sc0w committed Mar 26, 2019
1 parent 2fa523f commit 25f0f7141eebcb8605ddeb2c70c9a8726984545e
Showing with 2 additions and 1 deletion.
  1. +2 −1 maximus/main.c
@@ -64,7 +64,7 @@ gint main (gint argc, gchar *argv[])
MaximusApp UNUSED_VARIABLE *app;
GOptionContext *context;
GError *error = NULL;
GdkDisplay *gdk_display = gdk_display_get_default ();
GdkDisplay *gdk_display;

g_set_application_name ("Maximus");

@@ -90,6 +90,7 @@ gint main (gint argc, gchar *argv[])
g_option_context_parse (context, &argc, &argv, NULL);
g_option_context_free(context);

gdk_display = gdk_display_get_default ();
gdk_x11_display_error_trap_push (gdk_display);
app = maximus_app_get_default ();
gdk_x11_display_error_trap_pop_ignored (gdk_display);

0 comments on commit 25f0f71

Please sign in to comment.
You can’t perform that action at this time.