framewin: repaint frame after configure/resize

On X11, resizing a frame triggers an Expose event which repaints the
decorations. On Wayland, no such event is generated, so the frame
(titlebar, resizebar) was never repainted after resize — leaving
stale decorations at the old width.

Call frame_paint after reconfigure in both wFrameWindowConfigure
and wFrameWindowResize.
This commit is contained in:
Ollie 2026-05-23 19:22:56 +02:00
parent 4f70ab6df5
commit f88dfac8b9
1 changed files with 2 additions and 0 deletions

View File

@ -1010,11 +1010,13 @@ static void reconfigure(WFrameWindow * fwin, int x, int y, int width, int height
void wFrameWindowConfigure(WFrameWindow * fwin, int x, int y, int width, int height)
{
reconfigure(fwin, x, y, width, height, False);
wm_backend->frame_paint(fwin);
}
void wFrameWindowResize(WFrameWindow * fwin, int width, int height)
{
reconfigure(fwin, 0, 0, width, height, True);
wm_backend->frame_paint(fwin);
}
int wFrameWindowChangeTitle(WFrameWindow *fwin, const char *new_title)