[PATCH weston 1/2] window: do not store absolute coordinates

Pekka Paalanen ppaalanen at gmail.com
Wed Feb 15 06:49:44 PST 2012


These were not used for anything, anyway.

Signed-off-by: Pekka Paalanen <ppaalanen at gmail.com>
---
 clients/window.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/clients/window.c b/clients/window.c
index ae5a791..a38c99e 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -159,7 +159,7 @@ struct input {
 	struct window *keyboard_focus;
 	uint32_t current_pointer_image;
 	uint32_t modifiers;
-	int32_t x, y, sx, sy;
+	int32_t sx, sy;
 	struct wl_list link;
 
 	struct widget *focus_widget;
@@ -1476,8 +1476,6 @@ input_handle_motion(void *data, struct wl_input_device *input_device,
 	struct widget *widget;
 	int pointer = POINTER_LEFT_PTR;
 
-	input->x = x;
-	input->y = y;
 	input->sx = sx;
 	input->sy = sy;
 
@@ -1603,8 +1601,6 @@ input_handle_pointer_focus(void *data,
 		input->pointer_focus = wl_surface_get_user_data(surface);
 		window = input->pointer_focus;
 
-		input->x = x;
-		input->y = y;
 		input->sx = sx;
 		input->sy = sy;
 
-- 
1.7.3.4



More information about the wayland-devel mailing list