From bb402a1f1d29657eb60b1cdf567b15fcb3b343d6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 20 Sep 2020 10:02:53 -0400 Subject: [PATCH] wayland: Fix grabbing popup A typo snuck into commit 3023a61e1d65bee1db3 that caused us to fail all grabbing popups with "grab failed: not viewable". Fix that. --- gdk/wayland/gdksurface-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c index 022ea2c762..e05fdc4b63 100644 --- a/gdk/wayland/gdksurface-wayland.c +++ b/gdk/wayland/gdksurface-wayland.c @@ -2459,7 +2459,7 @@ gdk_wayland_surface_create_xdg_popup (GdkSurface *surface, if (!impl->display_server.wl_surface) return FALSE; - if (!is_realized_shell_surface (impl)) + if (!is_realized_shell_surface (parent_impl)) return FALSE; if (is_realized_toplevel (impl))