diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2018-08-22 16:22:58 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2018-08-22 16:22:58 +0200 |
commit | 370c5435220d04cd70691501a71f67165ada77b4 (patch) | |
tree | 3fffa9e33acec2f9cc12c7f9ea02524dfb44191d | |
parent | e741adb82e18fff557cb95185756f56ca7afcf3d (diff) | |
download | mutter-wip/carlosg/hidpi-input-opaque-regions.tar.gz |
wayland: Fix input/opaque regions calculation on hidpiwip/carlosg/hidpi-input-opaque-regions
Commit 6a92c6f83 unintendedly broke input/opaque region calculations
on hidpi. Most visible side effect is that clicking is only allowed
in the upper-left quarter of windows.
The surface coordinates are returned in logical unscaled buffer
size. We're however interested in actor coordinates (thus real
pixels) here.
-rw-r--r-- | src/wayland/meta-wayland-actor-surface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wayland/meta-wayland-actor-surface.c b/src/wayland/meta-wayland-actor-surface.c index 3c60ed56e..9f89e840d 100644 --- a/src/wayland/meta-wayland-actor-surface.c +++ b/src/wayland/meta-wayland-actor-surface.c @@ -149,8 +149,8 @@ meta_wayland_actor_surface_real_sync_actor_state (MetaWaylandActorSurface *actor clutter_actor_set_scale (CLUTTER_ACTOR (stex), actor_scale, actor_scale); surface_rect = (cairo_rectangle_int_t) { - .width = meta_wayland_surface_get_width (surface), - .height = meta_wayland_surface_get_height (surface), + .width = meta_wayland_surface_get_width (surface) * surface->scale, + .height = meta_wayland_surface_get_height (surface) * surface->scale, }; if (surface->input_region) |