"Philippe C.D. Robert" wrote:
>     XGContext *context = (XGContext *)[XGContext currentContext];
>     gswindow_device_t *wdev = [XGContext _windowWithTag:[win windowNumber]];
> 
>     /*
>      * Required info to get a visual
>      */
> 
>     dpy = [context xDisplay];
>     drawable = (*wget).buffer;
>     xScreen = (*wdev).screen;

Hopefully you can get these things without resorting to backend
functions, since it's really not set up for that and I don't have time
to fix it.
You can get the display from the DPS operator  DPScurrentserverdevice():

DPScurrentserverdevice (GSCurrentContext(), &dpy_ptr); dpy = *dpy_ptr;

DPScurrentwindowdevice() will return the window, but not the backing
store. I don't think
there is currently something to do that. Perhaps it should return the
backing store instead?

and you can probably get the screen this way:

xScreen = [[[[win screen] deviceDescription] objectForKey:
@"NSScreenNumber"] intValue];



-- 
Adam Fedor, Digital Optics            | Fudd's law of opposition: Push
[EMAIL PROTECTED]  http://www.doc.com     | something hard enough, and it 
[EMAIL PROTECTED]  http://www.gnustep.org | will fall over.

_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep
  • SharedX ? Philippe C . D . Robert
    • Adam Fedor

Reply via email to