summaryrefslogtreecommitdiff
path: root/gdk/wayland
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2016-11-15 15:07:39 +0100
committerMatthias Clasen <mclasen@redhat.com>2016-11-18 13:24:31 -0500
commit665c3a2877043b7d8adfe51d220ac83a0bf54f5a (patch)
tree0985748ac4e429af6d02a7fbd6468b175a1687c1 /gdk/wayland
parentf73c5dd8dded6afbee1ed53e4e0ed03100ff7bbc (diff)
downloadgtk+-665c3a2877043b7d8adfe51d220ac83a0bf54f5a.tar.gz
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
Diffstat (limited to 'gdk/wayland')
-rw-r--r--gdk/wayland/gdkwindow-wayland.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index e7fdd479a3..010add3949 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1217,7 +1217,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 = {