From 6cfa799ca1f0f36889b0f120f2baf26a45501a3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Wed, 20 Sep 2017 17:21:44 +0000 Subject: [PATCH] GDK W32: Don't let TEMP surfaces cause zorder side-effects Pass SWP_NOOWNERZORDER when rising TEMP surfaces to the top. This ensures that they don't drag anything else to the top with them. The use-case for this is a tooltip appearing for a non-foreground surface, causing said surface to rise above other surfaces, some of which maybe foreground at the moment. https://bugzilla.gnome.org/show_bug.cgi?id=784766 --- gdk/win32/gdksurface-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c index 8b3cfa15bd..4b5adb4924 100644 --- a/gdk/win32/gdksurface-win32.c +++ b/gdk/win32/gdksurface-win32.c @@ -1458,7 +1458,7 @@ gdk_win32_surface_raise (GdkSurface *window) if (GDK_SURFACE_TYPE (window) == GDK_SURFACE_TEMP) API_CALL (SetWindowPos, (GDK_SURFACE_HWND (window), HWND_TOPMOST, 0, 0, 0, 0, - SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE)); + SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE | SWP_NOOWNERZORDER)); else if (window->accept_focus) /* Do not wrap this in an API_CALL macro as SetForegroundWindow might * fail when for example dragging a window belonging to a different