forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
f73c5dd8dd
commit
665c3a2877
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user