Open lindexi opened 2 weeks ago
@lindexi I'm curious, what use case do you have for this?
Thank you @ramezgerges . I use it to set the owner window, and move the window now.
Set the owner window: XSetTransientForHint(Display, a, b);
Move window: XMoveWindow(display, handle, x, y);
@lindexi thanks. Do you need those two APIs because there are missing APIs in Uno?
@jeromelaban Yeah, and I fire the issues here: https://github.com/unoplatform/uno/issues/17098
But the XSetTransientForHint
is the same behavoir as WPF's Window.Owner
Great, thanks!
What would you like to be added
Add support for get the Uno's X11 window IntPtr
Why is this needed
Now, we can use
GetNativeWindow
to get the Uno native window. But TheGetNativeWindow
will return the internalUno.WinUI.Runtime.Skia.X11.X11Window
type on X11 platform. And we can not easy to use it without reflection:You can find the above code in my demo: https://github.com/lindexi/lindexi_gd/tree/0f1d39d4f2bde2e60d790cb14302b5397ca0ae9c/UnoDemo/ChuchejairqaibalNallnowequyalgaw
For which platform
Skia.X11
Anything else we need to know?
No response