[mutter] Disable clutter's high dpi scaling



commit 45ff615b46c30dbf976447322dbec3e62da0d6de
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Sun Feb 9 16:00:05 2014 +0100

    Disable clutter's high dpi scaling
    
    mutter needs some work to work with high dpi scaling so disable
    the scaling until that is fixed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723931

 src/core/main.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/core/main.c b/src/core/main.c
index 2c8bc83..6246d8e 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -384,6 +384,7 @@ meta_init (void)
   struct sigaction act;
   sigset_t empty_mask;
   GIOChannel *channel;
+  ClutterSettings *clutter_settings;
   
   sigemptyset (&empty_mask);
   act.sa_handler = SIG_IGN;
@@ -447,6 +448,13 @@ meta_init (void)
    * Clutter can only be initialized after the UI.
    */
   meta_clutter_init ();
+
+  /*
+   * XXX: We cannot handle high dpi scaling yet, so fix the scale to 1
+   * for now.
+   */
+  clutter_settings = clutter_settings_get_default ();
+  g_object_set (clutter_settings, "window-scaling-factor", 1, NULL);
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]