diff options
author | 2018-05-05 07:25:10 -0400 | |
---|---|---|
committer | 2018-05-05 07:25:10 -0400 | |
commit | 8dae168b77173f086880db0878f0a4b34a53e8b3 (patch) | |
tree | d88f77c7ca8d54d8a64c3e713a05c6b9d18c59f7 /sway/desktop/output.c | |
parent | Merge pull request #1912 from Hello71/patch-1 (diff) | |
parent | Use scissor to render title texture (diff) | |
download | sway-8dae168b77173f086880db0878f0a4b34a53e8b3.tar.gz sway-8dae168b77173f086880db0878f0a4b34a53e8b3.tar.zst sway-8dae168b77173f086880db0878f0a4b34a53e8b3.zip |
Merge pull request #1918 from RyanDwyer/title-scissor
Use scissor to render title texture
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 03af4239..d17a6e14 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -308,12 +308,10 @@ static void render_container_simple_border_normal(struct sway_output *output, | |||
308 | 308 | ||
309 | // Title text | 309 | // Title text |
310 | if (title_texture) { | 310 | if (title_texture) { |
311 | double x = (con->x + con->sway_view->border_thickness) | 311 | wlr_renderer_scissor(renderer, &box); |
312 | * output->wlr_output->scale; | ||
313 | double y = (con->y + con->sway_view->border_thickness) | ||
314 | * output->wlr_output->scale; | ||
315 | wlr_render_texture(renderer, title_texture, | 312 | wlr_render_texture(renderer, title_texture, |
316 | output->wlr_output->transform_matrix, x, y, 1); | 313 | output->wlr_output->transform_matrix, box.x, box.y, 1); |
314 | wlr_renderer_scissor(renderer, NULL); | ||
317 | } | 315 | } |
318 | } | 316 | } |
319 | 317 | ||