summarylogtreecommitdiffstats
path: root/chromium-gtk3.patch
diff options
context:
space:
mode:
authorJonas Heinrich2017-11-28 22:19:37 +0100
committerJonas Heinrich2017-11-28 22:19:37 +0100
commitbe249aa85007b8d48a4eab7dfe38e2404f70034c (patch)
tree56dc099158b510b348ec5f734434eea8a2f74f90 /chromium-gtk3.patch
downloadaur-electron-wayland.tar.gz
first commit
Diffstat (limited to 'chromium-gtk3.patch')
-rw-r--r--chromium-gtk3.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/chromium-gtk3.patch b/chromium-gtk3.patch
new file mode 100644
index 000000000000..a9ddb9452b3c
--- /dev/null
+++ b/chromium-gtk3.patch
@@ -0,0 +1,13 @@
+--- a/chrome/browser/ui/libgtkui/gtk_ui.cc
++++ b/chrome/browser/ui/libgtkui/gtk_ui.cc
+@@ -411,6 +411,10 @@
+ } // namespace
+
+ Gtk2UI::Gtk2UI() : middle_click_action_(GetDefaultMiddleClickAction()) {
++#if GTK_MAJOR_VERSION > 2
++ g_setenv("GDK_SCALE", "1", FALSE);
++ gdk_set_allowed_backends("x11");
++#endif
+ GtkInitFromCommandLine(*base::CommandLine::ForCurrentProcess());
+ }
+