On Wed, 17 Jul 2002, Annie Luo wrote:
> > > extern InputInfo inputInfo;
> > > ....
> > > short x, y;
> > > x = inputInfo.keyboard->focus->win->origin.x;
> > > y = inputInfo.keyboard->focus->win->origin.y;
> > > ....
> > > fprintf(stderr, "%h%h", x, y);
>
> > At least in XFree86, you can't call fprintf. ErrorF is the
> > standard error reporting function, even in the SI.
>
> I can try this. It's not important what error report function is used,
> could you tell me if the InputInfo structure contains the information I
> want?
>
I believe that holds the window that keyboard events are going
into, but that's one of the areas of the server that I know the
least about. The origin there is relative to that window's parent.
Mark.
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert