westoy: Schedule a full resize when we add a subsurface
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 12 Nov 2013 01:07:33 +0000 (20:07 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 1 Feb 2014 09:42:31 +0000 (01:42 -0800)
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

index 75e6418..a75a7f8 100644 (file)
@@ -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;
 }