[gtk+/gtk-3-22] wayland: Keep last scale factor on surfaces after it left all outputs



commit 48057800160d0179bdb8ce2e6f2cdc28bb1aa9fc
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Nov 15 15:07:39 2016 +0100

    wayland: Keep last scale factor on surfaces after it left all outputs
    
    This can be triggered on workspace switches, and on hidpi results in
    the scale factor being reset to 1 while the window is not in the
    current workspace.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774476

 gdk/wayland/gdkwindow-wayland.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 150a4df..268db49 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1235,7 +1235,8 @@ surface_leave (void              *data,
 
   impl->display_server.outputs = g_slist_remove (impl->display_server.outputs, output);
 
-  window_update_scale (window);
+  if (impl->display_server.outputs)
+    window_update_scale (window);
 }
 
 static const struct wl_surface_listener surface_listener = {


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