forked from AuroraMiddleware/gtk
Merge branch 'gdk-win32-fix-native-decoration-resize' into 'main'
GdkWin32: Fix resizes with native decorations Closes #5142, #5088, and #5090 See merge request GNOME/gtk!5096
This commit is contained in:
commit
48bcae99af
@ -2983,6 +2983,8 @@ gdk_event_translate (MSG *msg,
|
||||
}
|
||||
#endif
|
||||
|
||||
impl = GDK_WIN32_SURFACE (window);
|
||||
|
||||
/* Break grabs on unmap or minimize */
|
||||
if (windowpos->flags & SWP_HIDEWINDOW ||
|
||||
((windowpos->flags & SWP_STATECHANGED) && IsIconic (msg->hwnd)))
|
||||
@ -3043,10 +3045,19 @@ gdk_event_translate (MSG *msg,
|
||||
!(windowpos->flags & SWP_NOCLIENTSIZE) ||
|
||||
(windowpos->flags & SWP_SHOWWINDOW))
|
||||
{
|
||||
if (!IsIconic (msg->hwnd) &&
|
||||
!GDK_SURFACE_DESTROYED (window))
|
||||
if (!IsIconic (msg->hwnd) && !GDK_SURFACE_DESTROYED (window))
|
||||
{
|
||||
if (!_gdk_win32_surface_lacks_wm_decorations (window) &&
|
||||
!(windowpos->flags & SWP_NOCLIENTSIZE) &&
|
||||
window->width == impl->next_layout.configured_width &&
|
||||
window->height == impl->next_layout.configured_height)
|
||||
{
|
||||
impl->inhibit_configure = TRUE;
|
||||
}
|
||||
|
||||
gdk_surface_request_layout (window);
|
||||
}
|
||||
}
|
||||
|
||||
if ((windowpos->flags & SWP_HIDEWINDOW) &&
|
||||
!GDK_SURFACE_DESTROYED (window))
|
||||
|
Loading…
Reference in New Issue
Block a user