[gtk/wip/matthiasc/popup4: 105/105] wayland: Remove a mistaken check



commit e6add946814ca3903bf39246eb67a809156b4a47
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Apr 24 04:38:13 2019 +0000

    wayland: Remove a mistaken check
    
    This was preventing non-grabbing popups to appear
    next to each other, which is perfectly legal.

 gdk/wayland/gdksurface-wayland.c | 8 --------
 1 file changed, 8 deletions(-)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index bf553670c1..69730277e1 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -2155,14 +2155,6 @@ gdk_wayland_surface_create_xdg_popup (GdkSurface     *surface,
       g_warning ("Can't map popup, already mapped");
       return;
     }
-  if ((display->current_popups &&
-       g_list_last (display->current_popups)->data != parent) ||
-      (!display->current_popups &&
-       !is_realized_toplevel (parent)))
-    {
-      g_warning ("Tried to map a popup with a non-top most parent");
-      return;
-    }
 
   gdk_surface_freeze_updates (surface);
 


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