diff options
author | Boyan Ding <stu_dby@126.com> | 2014-08-05 15:22:04 +0800 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2014-08-19 16:45:15 +0300 |
commit | 850a514137c13771cb26841d596a2b282898dcf1 (patch) | |
tree | 7c380bda1c3360663300aba3e4ab610796567194 /shared/frame.c | |
parent | c06a180dd574c24ca50766461c10d3a6bfa3ad2b (diff) | |
download | weston-850a514137c13771cb26841d596a2b282898dcf1.tar.gz |
cairo-util: Draw solid titlebar for frames with only buttons
Previously geometry was changed to leave space for titlebar if a frame
has only buttons but no title. This patch fixes theme_render_frame to
avoid transparent titlebar.
Signed-off-by: Boyan Ding <stu_dby@126.com>
Diffstat (limited to 'shared/frame.c')
-rw-r--r-- | shared/frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/frame.c b/shared/frame.c index 53f3f5f7..5ea0e120 100644 --- a/shared/frame.c +++ b/shared/frame.c @@ -853,7 +853,7 @@ frame_repaint(struct frame *frame, cairo_t *cr) cairo_save(cr); theme_render_frame(frame->theme, cr, frame->width, frame->height, - frame->title, flags); + frame->title, &frame->buttons, flags); cairo_restore(cr); wl_list_for_each(button, &frame->buttons, link) |