[gtk+] wayland: Do not map toplevel utility as popup



commit a84fc3878477832a879df278d82f98a03c75a2b7
Author: Olivier Fourdan <ofourdan redhat com>
Date:   Tue May 2 11:41:26 2017 +0200

    wayland: Do not map toplevel utility as popup
    
    Applications can specify the type hint as utility even on toplevel
    windows.
    
    When that toplevel is also marked as a transient for another window,
    GDK Wayland backend would translate that as an xdg_popup which is not
    appropriate.
    
    While utility temp windows should remain mapped as subsurfaces (such as
    the ones used by treeviews), regular windows should not translate as
    neither a subsurface nor an xdg_popup.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781945

 gdk/wayland/gdkwindow-wayland.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 79e700f..95b74df 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -2222,11 +2222,6 @@ should_map_as_popup (GdkWindow *window)
     case GDK_WINDOW_TYPE_HINT_COMBO:
       return TRUE;
 
-    case GDK_WINDOW_TYPE_HINT_UTILITY:
-      if (GDK_WINDOW_TYPE (window) != GDK_WINDOW_TEMP)
-        return TRUE;
-      break;
-
     default:
       break;
     }


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