[mutter/gnome-3-14] meta-wayland-surface: Correcly scale the input region
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-14] meta-wayland-surface: Correcly scale the input region
- Date: Mon, 27 Oct 2014 17:13:14 +0000 (UTC)
commit 0a9bbe01093eb2203ca9d2b79a842f59bf8959a6
Author: Adel Gadllah <adel gadllah gmail com>
Date: Sat Oct 25 12:50:19 2014 +0200
meta-wayland-surface: Correcly scale the input region
The input region currently only gets scaled by the surface
scale while ignoring the output scale, which causes input events to not get
delivered correctly for clients on hidpi screens. So take the output scale
into account when doing so.
https://bugzilla.gnome.org/show_bug.cgi?id=739161
src/wayland/meta-wayland-surface.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index cda727c..68fdb82 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -408,7 +408,8 @@ commit_pending_state (MetaWaylandSurface *surface,
}
if (pending->input_region)
{
- pending->input_region = scale_region (pending->input_region, surface->scale);
+ pending->input_region = scale_region (pending->input_region,
+ meta_surface_actor_wayland_get_scale (META_SURFACE_ACTOR_WAYLAND
(surface->surface_actor)));
meta_surface_actor_set_input_region (surface->surface_actor, pending->input_region);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]