xorg driver, mouse fix for newer xorg

ulab-next
Jay Sorg 11 years ago
parent 61d51cea60
commit 635e2dba38

@ -114,45 +114,18 @@ l_bound_by(int val, int low, int high)
static void static void
rdpEnqueueMotion(int x, int y) rdpEnqueueMotion(int x, int y)
{ {
int i;
int n;
int valuators[2]; int valuators[2];
EventListPtr rdp_events;
xEvent *pev;
miPointerSetPosition(g_pointer, &x, &y);
valuators[0] = x; valuators[0] = x;
valuators[1] = y; valuators[1] = y;
xf86PostMotionEvent(g_pointer, TRUE, 0, 2, valuators);
GetEventList(&rdp_events);
n = GetPointerEvents(rdp_events, g_pointer, MotionNotify, 0,
POINTER_ABSOLUTE | POINTER_SCREEN,
0, 2, valuators);
for (i = 0; i < n; i++)
{
pev = (rdp_events + i)->event;
mieqEnqueue(g_pointer, (InternalEvent *)pev);
}
} }
/******************************************************************************/ /******************************************************************************/
static void static void
rdpEnqueueButton(int type, int buttons) rdpEnqueueButton(int type, int buttons)
{ {
int i; xf86PostButtonEvent(g_pointer, FALSE, buttons, type, 0, 0);
int n;
EventListPtr rdp_events;
xEvent *pev;
i = GetEventList(&rdp_events);
n = GetPointerEvents(rdp_events, g_pointer, type, buttons, 0, 0, 0, 0);
for (i = 0; i < n; i++)
{
pev = (rdp_events + i)->event;
mieqEnqueue(g_pointer, (InternalEvent *)pev);
}
} }
/******************************************************************************/ /******************************************************************************/

Loading…
Cancel
Save