Fully support multiple primary clients

This is the path we settled on in #24.

That is: any new toplevel window takes over the Cage display, hiding any
previous toplevels until it is closed. Only when the last toplevel is
closed, does Cage exit as well.
This commit is contained in:
Jente Hidskes 2019-01-12 17:52:38 +01:00
parent b0bd4e680d
commit b6024e982f
4 changed files with 8 additions and 18 deletions

View file

@ -133,7 +133,7 @@ handle_output_frame(struct wl_listener *listener, void *data)
view_for_each_surface(view, render_surface, &rdata);
/* If we have dialogs open and this view is not the
top of the stack, draw an overlay. */
if (have_dialogs_open(output->server) &&
if (view_has_children(output->server, view) &&
view->link.prev != &output->server->views) {
render_overlay(renderer, output->wlr_output, width, height);
}