xdg_shell: fix a typo

This commit is contained in:
Ilia Bozhinov 2020-10-27 18:28:39 +01:00 committed by Simon Ser
parent 79c7591dc1
commit 346188c015

View file

@ -494,7 +494,7 @@ void reset_xdg_surface(struct wlr_xdg_surface *xdg_surface) {
break; break;
case WLR_XDG_SURFACE_ROLE_POPUP: case WLR_XDG_SURFACE_ROLE_POPUP:
wl_resource_set_user_data(xdg_surface->popup->resource, NULL); wl_resource_set_user_data(xdg_surface->popup->resource, NULL);
xdg_surface->toplevel->resource = NULL; xdg_surface->popup->resource = NULL;
wl_list_remove(&xdg_surface->popup->link); wl_list_remove(&xdg_surface->popup->link);