> Is it possible to set the position of the system cursor within fltk?
For fltk v1 you can refeer to this post http://www.mail-archive.com/[EMAIL PROTECTED]/msg00023.html For version 2 I have created a version that set cursor position on X11 only (actually) in relative coordinates of a given Window exploiting the XWarpPointer Xlib call. The wrapping consists in 2 files that you have to include in your project: ##########warpmouse.h########## #ifndef _WARPCURSOR_H #define _WARPCURSOR_H #include <fltk/Window.h> #include <fltk/x11.h> using namespace ::fltk; void warpcursor(Window &w,int x, int y); #endif /* _WARPCURSOR_H */ ##########warpmouse.cpp########## #include "warpcursor.h" void warpcursor (Window &w,int x, int y) { XWarpPointer(xdisplay, xid(&w), xid(&w), 0, 0, 0, 0,x, y); } Don't put all the code in an another class cpp file but include the header only because there's some problem on typdef masking/ambiguity on X11 Fonts and other issues. Bye _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

