Skip to content

Commit ea04651

Browse files
Sunderland93mtwebster
authored andcommitted
xdg-shell/popup: Reset 'dismissed-by-client' state when remapping
A popup surface can be remapped multiple times using the same wl_surface, if a new xdg_popup object is created. To properly handle this, we need to reset the 'dismissed_by_client' boolean to false, as otherwise we won't allow new buffer commits.
1 parent a88891a commit ea04651

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/wayland/meta-wayland-xdg-shell.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,7 @@ finish_popup_setup (MetaWaylandXdgPopup *xdg_popup)
10591059

10601060
xdg_popup->setup.parent_surface = NULL;
10611061
xdg_popup->setup.grab_seat = NULL;
1062+
xdg_popup->dismissed_by_client = FALSE;
10621063

10631064
if (!meta_wayland_surface_get_window (parent_surface))
10641065
{

0 commit comments

Comments
 (0)