From 96252a524edfdd8b7952062f83a43c643fe50226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Sun, 7 May 2023 04:01:44 -0400 Subject: [PATCH] Call resize_window() after initing a mode, call XResizeWindow() if x_cvstat doesn't match cvstat. --- src/conio/x_events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/conio/x_events.c b/src/conio/x_events.c index 916a198537..9cb37ca413 100644 --- a/src/conio/x_events.c +++ b/src/conio/x_events.c @@ -476,7 +476,7 @@ static void resize_window() aspect_correct(&width, &height, x_cvstat.aspect_width, x_cvstat.aspect_height); pthread_mutex_lock(&vstatlock); - if (width == x_cvstat.winwidth && height == x_cvstat.winheight) { + if (width == vstat.winwidth && height == vstat.winheight) { pthread_mutex_unlock(&vstatlock); resize_xim(); return; @@ -502,6 +502,7 @@ static void init_mode_internal(int mode) last = NULL; } bitmap_drv_init_mode(mode, NULL, NULL, mw, mh); + resize_window(); x_cvstat = vstat; pthread_mutex_unlock(&vstatlock); resize_xim(); -- GitLab