window: Don't set the window size in widget_set_size()
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 8 Feb 2012 19:45:02 +0000 (14:45 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 8 Feb 2012 19:45:02 +0000 (14:45 -0500)
We propagate the toplevel widget size to the window size in the
window.c resize code.

clients/window.c

index d10662b..3246189 100644 (file)
@@ -1080,11 +1080,6 @@ widget_set_size(struct widget *widget, int32_t width, int32_t height)
 
        widget->allocation.width = width;
        widget->allocation.height = height;
-
-       window->allocation.x = 0;
-       window->allocation.y = 0;
-       window->allocation.width = width;
-       window->allocation.height = height;
 }
 
 void