aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-05-05 07:25:10 -0400
committerLibravatar GitHub <noreply@github.com>2018-05-05 07:25:10 -0400
commit8dae168b77173f086880db0878f0a4b34a53e8b3 (patch)
treed88f77c7ca8d54d8a64c3e713a05c6b9d18c59f7 /sway/tree/container.c
parentMerge pull request #1912 from Hello71/patch-1 (diff)
parentUse scissor to render title texture (diff)
downloadsway-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/tree/container.c')
-rw-r--r--sway/tree/container.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 3746ad81..9fb47020 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -584,12 +584,6 @@ static void update_title_texture(struct sway_container *con,
584 get_text_size(c, config->font, &width, NULL, scale, false, "%s", con->name); 584 get_text_size(c, config->font, &width, NULL, scale, false, "%s", con->name);
585 cairo_destroy(c); 585 cairo_destroy(c);
586 586
587 int borders = (con->type == C_VIEW ? con->sway_view->border_thickness :
588 config->border_thickness) * 2 * scale;
589 if (width > con->width * scale - borders) {
590 width = con->width * scale - borders;
591 }
592
593 cairo_surface_t *surface = cairo_image_surface_create( 587 cairo_surface_t *surface = cairo_image_surface_create(
594 CAIRO_FORMAT_ARGB32, width, height); 588 CAIRO_FORMAT_ARGB32, width, height);
595 cairo_t *cairo = cairo_create(surface); 589 cairo_t *cairo = cairo_create(surface);