Win32 WM_NCDESTROY to GDK Window to GTK Widget signal

2018-09-18 Thread Michel Donais
Good day, I am having a field trip working on GTK+ inside our app here. Mostly, I am currently trying to integrate a GTK container to an existing foreign (Win32) window. I was able to import the parent, import the events, get things being sent out to me. However, I am having issues with parent

Re: Win32 WM_NCDESTROY to GDK Window to GTK Widget signal

2018-09-18 Thread LRN via gtk-list
On 18.09.2018 18:59, Michel Donais wrote: > What seems to happen is the WM_NCDESTROY event is being sent out to GDK > because its hierarchy is getting destroyed by Win32, and then, it seems GDK > does the good thing destroying all its structures and pushes the destruction > to all its known childre

Re: Win32 WM_NCDESTROY to GDK Window to GTK Widget signal

2018-09-18 Thread Michel Donais
You are right, this is on GTK3. Hopefully, once GTK4 becomes predominant, it might not be useful to have foreign windows. But TBD! The problem is as follows: > if ((window != NULL) && (msg->hwnd != GetDesktopWindow ())) > gdk_window_destroy_notify (window); This line actually destroys the w

Re: Win32 WM_NCDESTROY to GDK Window to GTK Widget signal

2018-09-18 Thread LRN via gtk-list
On 18.09.2018 19:38, Michel Donais wrote: > You are right, this is on GTK3. Hopefully, once GTK4 becomes predominant, > it might not be useful to have foreign windows. But TBD! > > The problem is as follows: > >> if ((window != NULL) && (msg->hwnd != GetDesktopWindow ())) >> gdk_window_destr