gdk_get_default_root_window() returns GdkWindow with hwnd == null (win32)
Steps to reproduce
- root = gdk_get_default_root_window()
- hwnd = gdk_win32_window_get_handle(root); //it's null ???
- gdk_window_get_geometry(root, &x, &y, &width, &height);
Current behavior
(main.exe:4268): Gdk-WARNING **: /usr/src/ports/mingw64-x86_64-gtk3/mingw64-x86_64-gtk3-3.22.28-1.noarch/src/gtk+-3.22.28/gdk/win32/gdkwindow-win32.c:2303: GetClientRect failed with code 1400: Invalid window handle.
Expected outcome
no WARNING output
Version information
cygwin/mingw gtk/3.22.28 (Windows10) 64bit build
Additional information
I've tried other methods such as: screen = gtk_window_get_screen(existing_window); root = gdk_screen_get_root_window(screen); But the hwnd is always null.
Thanks,