7 #include "move_pointer.h"
9 #define EVENT_MASK Button1MotionMask | Button4MotionMask | ButtonMotionMask | \
10 Button2MotionMask | Button5MotionMask | PointerMotionMask | \
11 Button3MotionMask | PointerMotionHintMask
14 * Move the pointer to the (x, y) coordinates of the root window
15 * without respect to the current pointer position.
17 void move_pointer(gint dest_x
, gint dest_y
)
24 while (XCheckMaskEvent(dpy
, EVENT_MASK
, &xev
) == True
);
26 XWarpPointer(dpy
, None
, GDK_ROOT_WINDOW(), 0, 0, 0, 0, dest_x
, dest_y
);