summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-01-08 15:36:25 +0100
committermonsta <[email protected]>2017-01-26 15:02:46 +0300
commitf163b43728be648b7a91057ffb25b1b8505da36a (patch)
tree4846f1e6a083ea1f22f0733bac63ab7deee68a0f /src
parentf4a47715f30743cd05efe58588dd00e886ab8c22 (diff)
downloadeom-f163b43728be648b7a91057ffb25b1b8505da36a.tar.bz2
eom-f163b43728be648b7a91057ffb25b1b8505da36a.tar.xz
[GTK+3] force X11 backend
adapted from https://github.com/mate-desktop/eom/commit/52e24934ab37f874df2511ed760b2e39b49b5048
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
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