cairo-util: Fix geometry for frames with buttons but without title
authorBoyan Ding <stu_dby@126.com>
Fri, 4 Jul 2014 07:19:22 +0000 (15:19 +0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 5 Jul 2014 08:05:06 +0000 (01:05 -0700)
commitc4902124f95b37239552e1e3d4017c74caf6db9e
treef54a93dbdddd3fbd1e552dc719e4fdbbec973fe4
parentef5400843ff53c76ccfac99a80ef84baaee3dc38
cairo-util: Fix geometry for frames with buttons but without title

There exist frames which have buttons without title such as a simple
X application piped through xwayland which doesn't specify a title.
We draw the title bar with buttons, but hide it under the window
because geometry thinks a window needs titlebar only if it has title.

This patch change the condition, making it titlebar is needed if a
frame has title or has button(s), which makes more sense.

Signed-off-by: Boyan Ding <stu_dby@126.com>
shared/frame.c