1
1
mirror of https://github.com/swaywm/sway synced 2024-11-18 19:03:59 +01:00

Merge pull request #1846 from RyanDwyer/fullscreen-xwayland-unmanaged

Render unmanaged xwayland views when an xwayland view is fullscreen
This commit is contained in:
Drew DeVault 2018-04-23 10:44:06 +02:00 committed by GitHub
commit 778b90d13e
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -282,6 +282,11 @@ static void render_output(struct sway_output *output, struct timespec *when,
wlr_renderer_clear(renderer, clear_color);
// TODO: handle views smaller than the output
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 {
float clear_color[] = {0.25f, 0.25f, 0.25f, 1.0f};
wlr_renderer_clear(renderer, clear_color);