GdkWin32: Don't explicitly set the transient owner as active

...when a transient child is hidden.

The system does that automatically
This commit is contained in:
Luca Bacci 2024-04-06 10:51:53 +02:00
parent 9297439de4
commit 8a1bee1d79

View File

@ -3071,19 +3071,6 @@ gdk_event_translate (MSG *msg,
}
}
if ((windowpos->flags & SWP_HIDEWINDOW) &&
!GDK_SURFACE_DESTROYED (window))
{
/* Make transient parent the foreground window when window unmaps */
impl = GDK_WIN32_SURFACE (window);
if (impl->transient_owner &&
GetForegroundWindow () == GDK_SURFACE_HWND (window))
{
SetForegroundWindow (GDK_SURFACE_HWND (impl->transient_owner));
}
}
if (!(windowpos->flags & SWP_NOCLIENTSIZE))
{
if (window->resize_count > 1)