diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-05-28 13:55:38 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-05-28 13:55:38 -0400 |
commit | 205a1732cf9c9fe2c05677c19fd8c75f3245a20b (patch) | |
tree | fd882a1dba825d3a4d7b90a743a97de1eaa951d7 | |
parent | Merge pull request #2066 from RedSoxFan/force-focus-wrapping (diff) | |
download | sway-205a1732cf9c9fe2c05677c19fd8c75f3245a20b.tar.gz sway-205a1732cf9c9fe2c05677c19fd8c75f3245a20b.tar.zst sway-205a1732cf9c9fe2c05677c19fd8c75f3245a20b.zip |
Force fullscreen views to be fully opaque
-rw-r--r-- | sway/desktop/output.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 765647fd..0deb86ca 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -307,11 +307,11 @@ static void premultiply_alpha(float color[4], float opacity) { | |||
307 | } | 307 | } |
308 | 308 | ||
309 | static void render_view_surfaces(struct sway_view *view, | 309 | static void render_view_surfaces(struct sway_view *view, |
310 | struct sway_output *output, pixman_region32_t *damage) { | 310 | struct sway_output *output, pixman_region32_t *damage, float alpha) { |
311 | struct render_data data = { | 311 | struct render_data data = { |
312 | .output = output, | 312 | .output = output, |
313 | .damage = damage, | 313 | .damage = damage, |
314 | .alpha = view->swayc->alpha, | 314 | .alpha = alpha, |
315 | }; | 315 | }; |
316 | output_view_for_each_surface( | 316 | output_view_for_each_surface( |
317 | view, &data.root_geo, render_surface_iterator, &data); | 317 | view, &data.root_geo, render_surface_iterator, &data); |
@@ -323,7 +323,7 @@ static void render_view_surfaces(struct sway_view *view, | |||
323 | static void render_view(struct sway_output *output, pixman_region32_t *damage, | 323 | static void render_view(struct sway_output *output, pixman_region32_t *damage, |
324 | struct sway_container *con, struct border_colors *colors) { | 324 | struct sway_container *con, struct border_colors *colors) { |
325 | struct sway_view *view = con->sway_view; | 325 | struct sway_view *view = con->sway_view; |
326 | render_view_surfaces(view, output, damage); | 326 | render_view_surfaces(view, output, damage, view->swayc->alpha); |
327 | 327 | ||
328 | struct wlr_box box; | 328 | struct wlr_box box; |
329 | float output_scale = output->wlr_output->scale; | 329 | float output_scale = output->wlr_output->scale; |
@@ -810,7 +810,7 @@ static void render_output(struct sway_output *output, struct timespec *when, | |||
810 | 810 | ||
811 | // TODO: handle views smaller than the output | 811 | // TODO: handle views smaller than the output |
812 | render_view_surfaces( | 812 | render_view_surfaces( |
813 | workspace->sway_workspace->fullscreen, output, damage); | 813 | workspace->sway_workspace->fullscreen, output, damage, 1.0f); |
814 | 814 | ||
815 | if (workspace->sway_workspace->fullscreen->type == SWAY_VIEW_XWAYLAND) { | 815 | if (workspace->sway_workspace->fullscreen->type == SWAY_VIEW_XWAYLAND) { |
816 | render_unmanaged(output, damage, | 816 | render_unmanaged(output, damage, |