summaryrefslogtreecommitdiff
path: root/shared/frame.c
diff options
context:
space:
mode:
authorBoyan Ding <stu_dby@126.com>2014-08-05 15:22:04 +0800
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-08-19 16:45:15 +0300
commit850a514137c13771cb26841d596a2b282898dcf1 (patch)
tree7c380bda1c3360663300aba3e4ab610796567194 /shared/frame.c
parentc06a180dd574c24ca50766461c10d3a6bfa3ad2b (diff)
downloadweston-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.c2
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)