- gdk_window_move_resize( widget->window, x, y, w, h );
- gdk_window_move_resize( pizza->bin_window, 0, 0, w, h );
+ border = pizza->container.border_width;
+
+ x = allocation->x + border;
+ y = allocation->y + border;
+ w = allocation->width - border*2;
+ h = allocation->height - border*2;
+ if (w < 0)
+ w = 0;
+ if (h < 0)
+ h = 0;
+
+ if (pizza->m_noscroll)
+ {
+ if (only_resize)
+ gdk_window_resize( widget->window, allocation->width, allocation->height );
+ else
+ gdk_window_move_resize( widget->window, allocation->x, allocation->y,
+ allocation->width, allocation->height );
+
+ gdk_window_move_resize( pizza->bin_window, border, border, w, h );
+ }
+ else
+ {
+ if (only_resize)
+ gdk_window_resize( widget->window, w, h );
+ else
+ gdk_window_move_resize( widget->window, x, y, w, h );
+
+ gdk_window_resize( pizza->bin_window, w, h );
+ }