adjust wayland compositor scale when we adjust e_scale
authorChris Michael <cp.michael@samsung.com>
Wed, 25 Feb 2015 18:13:10 +0000 (13:13 -0500)
committerChris Michael <cp.michael@samsung.com>
Thu, 26 Feb 2015 20:33:40 +0000 (15:33 -0500)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/bin/e_comp_wl.h
src/bin/e_hints.c

index a5132f1e8f1e09515990392a596e88b98b15f3dc..32b7885c8aa98e82537a888581f865553c1bb58b 100644 (file)
@@ -285,6 +285,7 @@ struct _E_Comp_Wl_Output
    unsigned int refresh;
    unsigned int subpixel;
    unsigned int transform;
+   double scale;
 };
 
 EAPI Eina_Bool e_comp_wl_init(void);
index eb9151b3899577c315a764f2b60e108784265105..c50878421064cb46dc9b2d1af5a75bcc7d8a7ae8 100644 (file)
@@ -1,3 +1,4 @@
+#define E_COMP_WL
 #include "e.h"
 
 #ifndef HAVE_WAYLAND_ONLY
@@ -1664,6 +1665,12 @@ EAPI void
 e_hints_scale_update(void)
 {
 #ifdef HAVE_WAYLAND_ONLY
+   Eina_List *l;
+   E_Comp_Wl_Output *output;
+
+   EINA_LIST_FOREACH(e_comp->wl_comp_data->outputs, l, output)
+     output->scale = e_scale;
+
 #else
    unsigned int scale = e_scale * 1000;