diff options
author | Thomas White <taw@bitwiz.org.uk> | 2013-09-09 22:50:58 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2013-09-09 22:50:58 +0200 |
commit | b850a10b3cc60371a40fff05941995fd274c730a (patch) | |
tree | 9053d1f4a268dab7a1f5f3c8f72856f116ec47f2 /src/render.c | |
parent | 6b125fe2551be58b1b6859cafb9b35482aab9e6f (diff) |
Copy other layout properties for normal frames
Diffstat (limited to 'src/render.c')
-rw-r--r-- | src/render.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/render.c b/src/render.c index dc5f9ac..37e45f6 100644 --- a/src/render.c +++ b/src/render.c @@ -337,6 +337,17 @@ static int render_frame(cairo_t *cr, struct frame *fr, ImageStore *is, if ( (ch->style != NULL) && ch->lop_from_style ) { memcpy(&ch->lop, &ch->style->lop, sizeof(struct layout_parameters)); + } else { + double x, y, w, h; + LengthUnits wu, hu; + x = ch->lop.x; y = ch->lop.y; + w = ch->lop.w; h = ch->lop.h; + wu = ch->lop.w_units; hu = ch->lop.h_units; + memcpy(&ch->lop, &ch->style->lop, + sizeof(struct layout_parameters)); + ch->lop.x = x; ch->lop.y = y; + ch->lop.w = w; ch->lop.h = h; + ch->lop.w_units = wu; ch->lop.h_units = hu; } mtot = ch->lop.margin_l + ch->lop.margin_r; |