Merged older cs.po file with newest pot file.
[gliv/czech_localization.git] / src / move_pointer.c
blob73b8257269045f810f9a7f3694b526150b6b4884
1 /*********************
2 * Extension to GDK. *
3 *********************/
5 #include <gdk/gdkx.h>
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)
19 Display *dpy;
20 XEvent xev;
22 dpy = GDK_DISPLAY();
24 while (XCheckMaskEvent(dpy, EVENT_MASK, &xev) == True);
26 XWarpPointer(dpy, None, GDK_ROOT_WINDOW(), 0, 0, 0, 0, dest_x, dest_y);