summaryrefslogtreecommitdiffstats
path: root/xorg/server/xrdpmouse/rdpMouse.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-01-21 01:45:30 -0800
committerJay Sorg <jay.sorg@gmail.com>2014-01-21 01:45:30 -0800
commit055c577f5497b55fd7bb597c7303aa1236b39d61 (patch)
tree666835d385b29c33f17c97dcc74f2f215f1d3afa /xorg/server/xrdpmouse/rdpMouse.c
parent147ace738233435408df18415c7d802631f7fecc (diff)
downloadxrdp-proprietary-055c577f5497b55fd7bb597c7303aa1236b39d61.tar.gz
xrdp-proprietary-055c577f5497b55fd7bb597c7303aa1236b39d61.zip
xorg: work on xorg driver
Diffstat (limited to 'xorg/server/xrdpmouse/rdpMouse.c')
-rw-r--r--xorg/server/xrdpmouse/rdpMouse.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/xorg/server/xrdpmouse/rdpMouse.c b/xorg/server/xrdpmouse/rdpMouse.c
index a2092d46..2d8213cd 100644
--- a/xorg/server/xrdpmouse/rdpMouse.c
+++ b/xorg/server/xrdpmouse/rdpMouse.c
@@ -98,18 +98,16 @@ l_bound_by(int val, int low, int high)
static void
rdpEnqueueMotion(DeviceIntPtr device, int x, int y)
{
- int valuators[2];
-
- valuators[0] = x;
- valuators[1] = y;
- xf86PostMotionEvent(device, TRUE, 0, 2, valuators);
+ LLOGLN(10, ("rdpEnqueueMotion:"));
+ xf86PostMotionEvent(device, TRUE, 0, 2, x, y);
}
/******************************************************************************/
static void
rdpEnqueueButton(DeviceIntPtr device, int type, int buttons)
{
- xf86PostButtonEvent(device, FALSE, buttons, type, 0, 0);
+ LLOGLN(10, ("rdpEnqueueButton:"));
+ xf86PostButtonEvent(device, FALSE, buttons, type == ButtonPress, 0, 0);
}
/******************************************************************************/
@@ -122,6 +120,8 @@ PtrAddEvent(rdpPointer *pointer)
rdpEnqueueMotion(pointer->device, pointer->cursor_x, pointer->cursor_y);
+ LLOGLN(10, ("PtrAddEvent: x %d y %d", pointer->cursor_x, pointer->cursor_y));
+
for (i = 0; i < 5; i++)
{
if ((pointer->button_mask ^ pointer->old_button_mask) & (1 << i))
@@ -152,7 +152,8 @@ rdpInputMouse(rdpPtr dev, int msg,
{
rdpPointer *pointer;
- LLOGLN(10, ("rdpInputMouse:"));
+ LLOGLN(10, ("rdpInputMouse: msg %d param1 %ld param2 %ld param3 %ld param4 %ld",
+ msg, param1, param2, param3, param4));
pointer = &(dev->pointer);
switch (msg)
{