[gtk/scroll-event-propagation: 358/362] GDK W32: Don't let TEMP surfaces cause zorder side-effects



commit 1fdfc24168f420aedd0f6df49a9ae9d536ca9b5d
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date:   Wed Sep 20 17:21:44 2017 +0000

    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 d47d67bfdb..0068242021 100644
--- a/gdk/win32/gdksurface-win32.c
+++ b/gdk/win32/gdksurface-win32.c
@@ -1376,7 +1376,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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]