[mutter] ui: Disable scaling support in Gtk+
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] ui: Disable scaling support in Gtk+
- Date: Tue, 20 Aug 2013 12:28:09 +0000 (UTC)
commit 6980256a4213682411b4ebaa989cd88fff4cf4ba
Author: Alexander Larsson <alexl redhat com>
Date: Tue Aug 20 14:03:42 2013 +0200
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
src/ui/ui.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/ui.c b/src/ui/ui.c
index fc6fb4d..1c5baaf 100644
--- a/src/ui/ui.c
+++ b/src/ui/ui.c
@@ -58,6 +58,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*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]