From f88dfac8b9353a1ecb0750e98ec896c7e419efd7 Mon Sep 17 00:00:00 2001 From: Ollie Date: Sat, 23 May 2026 19:22:56 +0200 Subject: [PATCH] framewin: repaint frame after configure/resize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/framewin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/framewin.c b/src/framewin.c index c481e38..c331362 100644 --- a/src/framewin.c +++ b/src/framewin.c @@ -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)