summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2018-06-17 10:44:04 +0000
committerРуслан Ижбулатов <lrn1986@gmail.com>2018-06-17 10:44:04 +0000
commit96be612c48dfb527e5f789fdf6856b7f466900ef (patch)
tree0a91b80a4b4eda4d50266b61208392f20a2a116e
parent61f37b2b0d005f28ab04803b585952af0778cecf (diff)
downloadgtk+-96be612c48dfb527e5f789fdf6856b7f466900ef.tar.gz
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 (which must be on top) appearing for a non-foreground surface, causing said surface to rise above other surfaces, some of which may be foreground at the moment. https://bugzilla.gnome.org/show_bug.cgi?id=784766 Fixes issue #852
-rw-r--r--gdk/win32/gdkwindow-win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index ea510e4bd4..a4f7f1d3df 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -1812,7 +1812,7 @@ gdk_win32_window_raise (GdkWindow *window)
if (GDK_WINDOW_TYPE (window) == GDK_WINDOW_TEMP)
API_CALL (SetWindowPos, (GDK_WINDOW_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