diff options
-rw-r--r-- | gdk/wayland/gdkpopup-wayland.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gdk/wayland/gdkpopup-wayland.c b/gdk/wayland/gdkpopup-wayland.c index a79670aef2..38a498eb4f 100644 --- a/gdk/wayland/gdkpopup-wayland.c +++ b/gdk/wayland/gdkpopup-wayland.c @@ -398,7 +398,11 @@ gdk_wayland_popup_handle_configure (GdkWaylandSurface *wayland_surface) g_warn_if_reached (); if (wayland_popup->pending.has_repositioned_token) - wayland_popup->received_reposition_token = wayland_popup->pending.repositioned_token; + { + wayland_popup->received_reposition_token = + wayland_popup->pending.repositioned_token; + wayland_popup->pending.has_repositioned_token = FALSE; + } switch (wayland_popup->state) { @@ -968,6 +972,9 @@ gdk_wayland_surface_create_xdg_popup (GdkWaylandPopup *wayland_popup, g_assert_not_reached (); } + wayland_popup->received_reposition_token = 0; + wayland_popup->reposition_token = 0; + gdk_popup_layout_get_shadow_width (layout, &impl->shadow_left, &impl->shadow_right, |