mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
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
This commit is contained in:
parent
333d78f338
commit
d7c4f57aae
@ -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*
|
||||
|
Loading…
Reference in New Issue
Block a user