From: Olivier Fourdan Date: Tue, 2 May 2017 09:41:26 +0000 (+0200) Subject: wayland: Do not map toplevel utility as popup X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~517 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=63e05158ea032b6b39e5ec59f2044c72841fd8ea;p=gtk%2B3.0.git 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 --- diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index 6ac9c04c90..f6125abf9b 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -2246,11 +2246,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; }