I don’t know how to get “GtkWindow” for Linux in Unity.
2-----------------------------------------------------------------------------------------------------
Just to clarify things. Are you trying to
a) get the existing Unity window the one in which Unity draws its stuff,
b) or are you trying to create additional gtkwindows?
And are you trying to do that for editor or standalone player? The code you pasted looks like C. Did you created a native Unity plugin and run that code from there?
Assuming answer to question one is a), is there any reason for you to believe that Unity uses gtk for creating it’s windows? I would assume that Unity is just using X11 API directly so there would be no gtk windows. At least in the standalone player, the editor seems to be using native file browser and menu bar so it’s a bit different situation.
Thank you for answering my question.
Answer to your question
a) No. It’s for making drag and drop in Linux behavior.
b) No. The “GtkWindow” of the window created by Unity that is being drawn.
In Standalone Player,
I’m trying to reproduce it with the Native Unity Plugin.
It’s Linux.
So that’s it. As far as I can tell, it seems better to understand that there is no “GtkWindow”.
[DllImport()]
private extern static gtk_window_list_toplevels();
[DllImport()]
private extern static g_application_get_default();
I don’t know where the library is, but I would like to try it with this approach.