summaryrefslogtreecommitdiff
path: root/maximus
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-26 16:00:37 +0100
committermonsta <[email protected]>2019-03-27 15:41:14 +0300
commitc5f9dd0115702c449d2e43a916ebddbc4e01f1f7 (patch)
treefb34124b2b861b206b4f0c2b674c2aed8eac4aa8 /maximus
parentc744a5e59b14f9cd4df23268f10e05e6781dcf9c (diff)
downloadmate-netbook-c5f9dd0115702c449d2e43a916ebddbc4e01f1f7.tar.bz2
mate-netbook-c5f9dd0115702c449d2e43a916ebddbc4e01f1f7.tar.xz
maximus: Fix 'Segmentation fault'
Fixes https://github.com/mate-desktop/mate-netbook/issues/46
Diffstat (limited to 'maximus')
-rw-r--r--maximus/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/maximus/main.c b/maximus/main.c
index 267cc0a..a508367 100644
--- a/maximus/main.c
+++ b/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);