From e22952bb13cf7e7d16b9d8a36c6e9c82307436eb Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 11 Nov 2013 20:07:33 -0500 Subject: [PATCH] westoy: Schedule a full resize when we add a subsurface 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 75e6418b..a75a7f81 100644 --- a/clients/window.c +++ b/clients/window.c @@ -4671,6 +4671,9 @@ window_add_subsurface(struct window *window, void *data, assert(!"bad enum subsurface_mode"); } + window->resize_needed = 1; + window_schedule_redraw(window); + return widget; }