--- src/spiceqxl_inputs.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/spiceqxl_inputs.c b/src/spiceqxl_inputs.c index 9d612a3..6db6cef 100644 --- a/src/spiceqxl_inputs.c +++ b/src/spiceqxl_inputs.c @@ -285,7 +285,7 @@ static const SpiceMouseInterface mouse_interface = { static void tablet_set_logical_size(SpiceTabletInstance* instance, int width, int height) { - XSpicePointer *pointer = container_of(instance, XSpicePointer, tablet); + XSpicePointer *ptr = container_of(instance, XSpicePointer, tablet); if (height < 16) { height = 16; @@ -293,23 +293,23 @@ static void tablet_set_logical_size(SpiceTabletInstance* instance, int width, in if (width < 16) { width = 16; } - pointer->width = width; - pointer->height = height; + ptr->width = width; + ptr->height = height; } static void tablet_position(SpiceTabletInstance* instance, int x, int y, uint32_t buttons_state) { - XSpicePointer *pointer = container_of(instance, XSpicePointer, tablet); + XSpicePointer *ptr = container_of(instance, XSpicePointer, tablet); // TODO: don't ignore buttons_state - xf86PostMotionEvent(pointer->pInfo->dev, 1, 0, 2, x, y); + xf86PostMotionEvent(ptr->pInfo->dev, 1, 0, 2, x, y); } static void tablet_buttons(SpiceTabletInstance *instance, uint32_t buttons_state) { - XSpicePointer *pointer = container_of(instance, XSpicePointer, tablet); + XSpicePointer *ptr = container_of(instance, XSpicePointer, tablet); static uint32_t old_buttons_state = 0; int i; @@ -324,7 +324,7 @@ static void tablet_buttons(SpiceTabletInstance *instance, for (i = 0; i < BUTTONS; i++) { if ((buttons_state ^ old_buttons_state) & (1 << i)) { int action = (buttons_state & (1 << i)); - xf86PostButtonEvent(pointer->pInfo->dev, 0, i + 1, action, 0, 0); + xf86PostButtonEvent(ptr->pInfo->dev, 0, i + 1, action, 0, 0); } } old_buttons_state = buttons_state; @@ -372,13 +372,13 @@ XSpiceKeyboardPreInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags) static int XSpicePointerPreInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags) { - XSpicePointer *pointer; + XSpicePointer *ptr; - pointer = calloc(sizeof(*pointer), 1); - pointer->mouse.base.sif = &mouse_interface.base; - pointer->tablet.base.sif = &tablet_interface.base; - pointer->absolute = TRUE; - pointer->pInfo = pInfo; + ptr = calloc(sizeof(*ptr), 1); + ptr->mouse.base.sif = &mouse_interface.base; + ptr->tablet.base.sif = &tablet_interface.base; + ptr->absolute = TRUE; + ptr->pInfo = pInfo; pInfo->private = NULL; pInfo->type_name = "UNKNOWN"; @@ -386,7 +386,7 @@ XSpicePointerPreInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags) pInfo->read_input = NULL; pInfo->switch_mode = NULL; - spice_server_add_interface(xspice_get_spice_server(), &pointer->tablet.base); + spice_server_add_interface(xspice_get_spice_server(), &ptr->tablet.base); return Success; } -- 1.7.10.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel