Re: mouse and keyboard questions

joch <joch ttelaviv sgi com> writes: 
> 1. how can i move the mouse from inside my application (e.g. tell the
> mouse to go to a specific point in my window )?

Include gdk/gdkx.h and use XWarpPointer() (see the man page for it).
Not supported by the portability layer, so you have to
> 2. how can i grab the keyboard events and handle them without letting
> the window manager see them ?

Don't run a window manager, is the only solution I know, if you want
all events.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]