https://bugzilla.gnome.org/show_bug.cgi?id=744933
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #4 from [email protected] ---
We scale the input region by output_scale / buffer_scale ... so if you have
buffer_scale of 1 and output scale of 2 it gets scaled up by 2.
If the app sets buffer scale to 2 it gets scaled by 1 (i.e not at all) because
the app is supposed to be rendering at the correct resolution.
Also is it really "the upper half" or the the "upper left quarter" ?
We always scale the opaque region by the buffer scale which looks wrong ...
unfortunately can't test it right now does something like this work? :
diff --git a/src/wayland/meta-wayland-surface.c
b/src/wayland/meta-wayland-surface.c
index b1364e8..76c1fc1 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -426,7 +426,8 @@ commit_pending_state (MetaWaylandSurface *surface,
if (pending->opaque_region)
{
- pending->opaque_region = scale_region (pending->opaque_region,
surface->scale);
+ pending->opaque_region = scale_region (pending->opaque_region,
+
meta_surface_actor_wayland_get_scale (META_SURFACE_ACTOR_WAYLAND
(surface->surface_actor)));
meta_surface_actor_set_opaque_region (surface->surface_actor,
pending->opaque_region);
}
if (pending->input_region)
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
wayland-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-bugs