Hi, I'm trying out a little technique with extending my window manager.
I'd not too elaborate but I'm not convinced it will work yet. All I need
to know is, is there a program or an X function that will return the
current absolute mouse coordinates without waiting for a move event or
somesuch? For example, I move the mouse to the middle of the screen and
type 'getcoords' (or whatever) in a previously selected xterm and it
returns "600,400" or whatever.

Any ideas? If such a program exists, I think I can do something fairly
cool with it. If not, and an X function call exists, I can write a
wrapper. The only problem will be when the function requires the event to
go to a window, although maybe something can be done with the root window
there. So it's a global 'where-is-the-mouse' function I'm after. I'm a
newbie when it comes to X programming btw, but experienced with
linux/coding in general, so all ideas appreciated! :)

Cheers,
Dave.

_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to