[PATCH 10/16] westoy: Schedule a full resize when we add a subsurface

Rafael Antognolli rafael.antognolli at intel.com
Wed Nov 27 09:50:26 PST 2013


From: "Jasper St. Pierre" <jstpierre at mecheye.net>

If a client adds a subsurface, we need to make sure it's allocated
properly, so queue a resize and redraw on the parent window.
---
 clients/window.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/clients/window.c b/clients/window.c
index a201ebb..5734db6 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -4555,6 +4555,9 @@ window_add_subsurface(struct window *window, void *data,
 		assert(!"bad enum subsurface_mode");
 	}
 
+	window->resize_needed = 1;
+	window_schedule_redraw(window);
+
 	return widget;
 }
 
-- 
1.8.3.1



More information about the wayland-devel mailing list