From f163b43728be648b7a91057ffb25b1b8505da36a Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 8 Jan 2017 15:36:25 +0100 Subject: [GTK+3] force X11 backend adapted from https://github.com/mate-desktop/eom/commit/52e24934ab37f874df2511ed760b2e39b49b5048 --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/main.c b/src/main.c index f1b92f7..41c62a4 100644 --- a/src/main.c +++ b/src/main.c @@ -203,6 +203,10 @@ main (int argc, char **argv) gtk_rc_parse (EOM_DATA_DIR G_DIR_SEPARATOR_S "gtkrc"); #endif +#if GTK_CHECK_VERSION (3, 0, 0) + gdk_set_allowed_backends ("x11"); +#endif + ctx = g_option_context_new (NULL); g_option_context_add_main_entries (ctx, goption_options, PACKAGE); /* Option groups are free'd together with the context -- cgit v1.2.1