[PATCH weston 3/6] compositor-wayland: Fix cursor coordinate transforms so it works on translated outputs

Jason Ekstrand jason at jlekstrand.net
Thu Nov 7 18:13:30 PST 2013


Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
---
 src/compositor-wayland.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c
index 5f691a7..181d6bb 100644
--- a/src/compositor-wayland.c
+++ b/src/compositor-wayland.c
@@ -862,8 +862,6 @@ input_handle_pointer_enter(void *data, struct wl_pointer *pointer,
 		location = THEME_LOCATION_CLIENT_AREA;
 	}
 
-	x += wl_fixed_from_int(input->output->base.x);
-	y += wl_fixed_from_int(input->output->base.y);
 	weston_output_transform_coordinate(&input->output->base, x, y, &x, &y);
 
 	if (location == THEME_LOCATION_CLIENT_AREA) {
@@ -918,8 +916,6 @@ input_handle_motion(void *data, struct wl_pointer *pointer,
 		location = THEME_LOCATION_CLIENT_AREA;
 	}
 
-	x += wl_fixed_from_int(input->output->base.x);
-	y += wl_fixed_from_int(input->output->base.y);
 	weston_output_transform_coordinate(&input->output->base, x, y, &x, &y);
 
 	if (input->focus && location != THEME_LOCATION_CLIENT_AREA) {
-- 
1.8.3.1



More information about the wayland-devel mailing list