Gdk4 Win32: ignore invalid client rects
Gdk-Win32 uses GetClientRect()
internally to query the surfaces coordinates,
but this API may fail (by design) in some transient contexts (observed when iconifying
a maximized window).
Check if the rect
area is null, and don't update the surface position in
that case. This will keep the current surface size, until Win32 notifies
the new valid window state later.
This prevents using a nulled next_layout
for toplevel size computation,
which would break widgets allocation once notified on gtk side.
Fixes #5724 (closed)
Closes #5724 (closed)
Edited by gwillems