I wonder if it's posible to make the mouse cursor move to the top left corner of the screen when Xorg starts.
Printable View
I wonder if it's posible to make the mouse cursor move to the top left corner of the screen when Xorg starts.
OK found the solution (I am programming with fltk 1.1 under debian etch)
Then I just add the following line to function main()Code:#include <FL/x.H>
extern Display *fl_display;
int jump_cursor (int new_x, int new_y)
{
Window rootwindow = DefaultRootWindow(fl_display);
XWarpPointer(fl_display, rootwindow, rootwindow, 0, 0, 0, 0,new_x, new_y);
}
Code:jump_cursor(0,0);