mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
Revert "wayland-surface: Apply the surface scale only if needed"
This commit is wrong, it assumes that the scale only applies to the one
set by the client but its not. meta_surface_actor_wayland_scale_texture
also handles the output scale. Revert the commit to fix hidpi for wayland
clients like weston-terminal.
This reverts commit 0364ea9140
.
https://bugzilla.gnome.org/show_bug.cgi?id=739161
This commit is contained in:
parent
af00ca534a
commit
a43ca7b5b1
@ -393,10 +393,7 @@ commit_pending_state (MetaWaylandSurface *surface,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pending->scale > 0)
|
if (pending->scale > 0)
|
||||||
{
|
surface->scale = pending->scale;
|
||||||
surface->scale = pending->scale;
|
|
||||||
meta_surface_actor_wayland_scale_texture (META_SURFACE_ACTOR_WAYLAND (surface->surface_actor));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!cairo_region_is_empty (pending->damage))
|
if (!cairo_region_is_empty (pending->damage))
|
||||||
surface_process_damage (surface, pending->damage);
|
surface_process_damage (surface, pending->damage);
|
||||||
@ -415,6 +412,9 @@ commit_pending_state (MetaWaylandSurface *surface,
|
|||||||
meta_surface_actor_set_input_region (surface->surface_actor, pending->input_region);
|
meta_surface_actor_set_input_region (surface->surface_actor, pending->input_region);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* scale surface texture */
|
||||||
|
meta_surface_actor_wayland_scale_texture (META_SURFACE_ACTOR_WAYLAND (surface->surface_actor));
|
||||||
|
|
||||||
/* wl_surface.frame */
|
/* wl_surface.frame */
|
||||||
wl_list_insert_list (&compositor->frame_callbacks, &pending->frame_callback_list);
|
wl_list_insert_list (&compositor->frame_callbacks, &pending->frame_callback_list);
|
||||||
wl_list_init (&pending->frame_callback_list);
|
wl_list_init (&pending->frame_callback_list);
|
||||||
|
Loading…
Reference in New Issue
Block a user