clutter/x11: Add pointer motion support to virtual devices
As the other virtual input event delivery mechanisms, this also uses the XTEST protocol.
This commit is contained in:
parent
203a0b37ed
commit
542502be53
@ -48,6 +48,10 @@ clutter_virtual_input_device_x11_notify_relative_motion (ClutterVirtualInputDevi
|
|||||||
double dx,
|
double dx,
|
||||||
double dy)
|
double dy)
|
||||||
{
|
{
|
||||||
|
XTestFakeRelativeMotionEvent (clutter_x11_get_default_display (),
|
||||||
|
(int) dx,
|
||||||
|
(int) dy,
|
||||||
|
0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -56,6 +60,11 @@ clutter_virtual_input_device_x11_notify_absolute_motion (ClutterVirtualInputDevi
|
|||||||
double x,
|
double x,
|
||||||
double y)
|
double y)
|
||||||
{
|
{
|
||||||
|
XTestFakeMotionEvent (clutter_x11_get_default_display (),
|
||||||
|
clutter_x11_get_default_screen (),
|
||||||
|
(int) x,
|
||||||
|
(int) y,
|
||||||
|
0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user