> Hello everyone,
>
> at the moment I try to write an extension to the XFree86 X-Server. Is it
> possible (with only) the knowlegde of a drawable id (Window for example)
> to get the screen number of the screen on which this drawable is displayed
> (I need the Information at the client side and I dont want to add
> another X Request for that Information) ?
>
If you know the drawable is a window, you could use XGetWindowAttributes().
This returns a screen pointer from which you can easily derive the screen
number. If you don't know that the drawable is a window, you could use
XGetGeometry() and then XGetWindowAttributes() on the root window returned
from XGetGeometry().
Derek
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert