[gtk/wip/matthiasc/popup4: 105/106] wayland: Only check incorrect top-most for grabbing popups
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup4: 105/106] wayland: Only check incorrect top-most for grabbing popups
- Date: Wed, 24 Apr 2019 11:46:07 +0000 (UTC)
commit 5ec4a18a75666cdf4cbeb8cf1c0c4cf471f609f6
Author: Jonas Ådahl <jadahl gmail com>
Date: Wed Apr 24 13:33:12 2019 +0200
wayland: Only check incorrect top-most for grabbing popups
gdk/wayland/gdksurface-wayland.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index bf553670c1..f42dffd2f8 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -2155,10 +2155,11 @@ 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)))
+ if (grab_input_seat &&
+ ((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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]