xwayland: reintroduce XWayland workaround

This was temporarily removed when introducing proper view abstractions.
Now that we have the cg_xwayland_view struct, we reintroduce this
workaround in its proper place.

This also fixes the previous workaround, which checked whether a view
was *currently* mapped and not if it *has ever* been mapped.

See #18, #19 and 443d955dfd.
This commit is contained in:
Jente Hidskes 2019-01-30 17:19:40 +01:00
parent 7175100d0d
commit 41d4ccfe44
3 changed files with 27 additions and 1 deletions

View file

@ -106,6 +106,7 @@ handle_xwayland_surface_map(struct wl_listener *listener, void *data)
struct cg_xwayland_view *xwayland_view = wl_container_of(listener, xwayland_view, map);
struct cg_view *view = &xwayland_view->view;
xwayland_view->ever_been_mapped = true;
view_map(view, xwayland_view->xwayland_surface->surface);
}