Render unmanaged xwayland views when an xwayland view is fullscreen

This makes Chromium and Firefox context menus appear when fullscreen.
This commit is contained in:
Ryan Dwyer 2018-04-23 09:20:19 +10:00
parent 48c84cd1f8
commit 4d2b3fc950

View file

@ -282,6 +282,11 @@ static void render_output(struct sway_output *output, struct timespec *when,
wlr_renderer_clear(renderer, clear_color); wlr_renderer_clear(renderer, clear_color);
// TODO: handle views smaller than the output // TODO: handle views smaller than the output
render_container(output, workspace->sway_workspace->fullscreen->swayc); render_container(output, workspace->sway_workspace->fullscreen->swayc);
if (workspace->sway_workspace->fullscreen->type == SWAY_VIEW_XWAYLAND) {
render_unmanaged(output,
&root_container.sway_root->xwayland_unmanaged);
}
} else { } else {
float clear_color[] = {0.25f, 0.25f, 0.25f, 1.0f}; float clear_color[] = {0.25f, 0.25f, 0.25f, 1.0f};
wlr_renderer_clear(renderer, clear_color); wlr_renderer_clear(renderer, clear_color);