From 904d202aa2b0c906cf5ef25b972dbb2c0ce70833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Mon, 19 Feb 2024 19:26:35 -0500 Subject: [PATCH] Call map_window() to update size hints when resizing the window. This way, WMs that enforce aspect ratio etc, won't get potentially block the update. --- src/conio/x_events.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/conio/x_events.c b/src/conio/x_events.c index fcf89661e0..0567b2f3cc 100644 --- a/src/conio/x_events.c +++ b/src/conio/x_events.c @@ -1170,8 +1170,12 @@ static void resize_window() bitmap_get_scaled_win_size(new_scaling, &width, &height, 0, 0); resize = new_scaling != vstat.scaling || width != vstat.winwidth || height != vstat.winheight; x_cvstat.scaling = vstat.scaling; - if (resize) + if (resize) { + map_window(); x11.XResizeWindow(dpy, win, width, height); + x_cvstat.winwidth = vstat.winwidth = width; + x_cvstat.winheight = vstat.winheight = height; + } pthread_mutex_unlock(&vstatlock); return; -- GitLab