- // border window (or only window if
- // no-scroll no-border) is full size
- GdkWindow* window = pizza->m_backing_window;
- if (window == NULL)
- window = widget->window;
- gdk_window_move_resize(
- window, alloc->x, alloc->y, alloc->width, alloc->height);
- }
- if (is_resize && pizza->m_backing_window)
- {
- // main window is inside border
- if (pizza->m_is_scrollable)
- gdk_window_resize(widget->window, w, h);
- else
- // need move as well as resize because border can change
- gdk_window_move_resize(widget->window, border_x, border_y, w, h);
-
- // wxWidgets turns off redraw-on-allocate by default,
- // so border area needs to be invalidated
- if (border_x > 1 || border_y > 1)
- {
- if (pizza->m_is_scrollable)
- ; // invalidate does not seem to be needed in this case
- else
- gdk_window_invalidate_rect(pizza->m_backing_window, NULL, false);
- }
+ // one window
+ gdk_window_move_resize(widget->window,
+ alloc->x + border_x, alloc->y + border_y, w, h);