-
-
Notifications
You must be signed in to change notification settings - Fork 90
[gdkx11] Get pointer to xlib xdisplay #346
Comments
You can get the display by calling https://gtk-rs.org/docs/gdkx11/struct.X11Window.html#method.get_display |
But I need a pointer to the xlib display, something I can use across FFI boundaries for programs that expect an xlib display structure. I believe |
It returns an |
xlib crate doesn't provide any safe bindings, just raw pointers so that should be fine for your use case? |
How does this even work then? The function returns a Maybe the function should actually return a That's also UB btw, |
Also why is there no |
it was never there https://github.com/gtk-rs/gtk-rs/blob/46ed982c1698e6657e455ebc697cc3596ebb4da0/gdkx11/Gir.toml#L96 |
Why does it exist in the docs then: https://gtk-rs.org/docs/gdkx11/struct.X11Window.html#method.get_display ? |
Oh. I was checking the docs here and here it says it returns a I'll see if I can make it work |
@emi2k01 Any updates here? |
Should be very similar to the changes at gtk-rs/gtk4-rs#281 btw :) |
I was trying to get the pointer in similar manner this morning. |
I'm trying to use GDK_DISPLAY_XDISPLAY() or gdk_x11_display_get_xdisplay () but I can't find a way to get a raw pointer to the xlib display using gdkx11.
The purpose of this is to use it in raw-window-handle
How can I do it?
Thanks!
The text was updated successfully, but these errors were encountered: