blob: a9ddb9452b3ce44675fb9bfd14b642507f9743d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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());
}
|