summaryrefslogtreecommitdiffstats
path: root/src/ui/ui.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-08-20 12:03:42 (GMT)
committerJasper St. Pierre <jstpierre@mecheye.net>2014-04-09 19:34:10 (GMT)
commitd7c4f57aaebcd1e6da7a7b343765c0c4b6b81b25 (patch)
treed0d90e816c20834927a68980443f5206e7d0c3ec /src/ui/ui.c
parent333d78f33820ea431d1e66cee74209426a54ee0d (diff)
downloadmutter-d7c4f57aaebcd1e6da7a7b343765c0c4b6b81b25.zip
mutter-d7c4f57aaebcd1e6da7a7b343765c0c4b6b81b25.tar.xz
ui: Disable scaling support in Gtk+
We can't really support the Gtk+ automatic scaling, as to much code relies on the GdkWindow and XWindow sizes, etc to match. In order to keep working we just disable the scaling, meaning we will pick up the larger fonts, but nothing else. Its not ideal but it works for now. https://bugzilla.gnome.org/show_bug.cgi?id=706388
Diffstat (limited to 'src/ui/ui.c')
-rw-r--r--src/ui/ui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/ui.c b/src/ui/ui.c
index 9dbb6a6..31225bf 100644
--- a/src/ui/ui.c
+++ b/src/ui/ui.c
@@ -53,6 +53,11 @@ meta_ui_init (void)
if (!gtk_init_check (NULL, NULL))
meta_fatal ("Unable to open X display %s\n", XDisplayName (NULL));
+
+ /* We need to be able to fully trust that the window and monitor sizes
+ that Gdk reports corresponds to the X ones, so we disable the automatic
+ scale handling */
+ gdk_x11_display_set_window_scale (gdk_display_get_default (), 1);
}
Display*