[PATCH 2/2] cairo-util: Set geometry_dirty in frame_set_title

Boyan Ding stu_dby at 126.com
Fri Jul 4 00:19:23 PDT 2014


Title can decide the geometry of a frame because it may affect the
existence of titlebar, so setting geometry_dirty in frame_set_title for
potential change.

Signed-off-by: Boyan Ding <stu_dby at 126.com>
---
 shared/frame.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/shared/frame.c b/shared/frame.c
index aacca60..53f3f5f 100644
--- a/shared/frame.c
+++ b/shared/frame.c
@@ -385,6 +385,7 @@ frame_set_title(struct frame *frame, const char *title)
 	free(frame->title);
 	frame->title = dup;
 
+	frame->geometry_dirty = 1;
 	frame->status |= FRAME_STATUS_REPAINT;
 
 	return 0;
-- 
2.0.1




More information about the wayland-devel mailing list