From 8a1bee1d79a9cfe43ffaebaa7815c832f96bf699 Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Sat, 6 Apr 2024 10:51:53 +0200 Subject: [PATCH] GdkWin32: Don't explicitly set the transient owner as active ...when a transient child is hidden. The system does that automatically --- gdk/win32/gdkevents-win32.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index c46c1f06ad..6465f8765f 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -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)