From 4bfdec46f56ca4ae0711bf0d0943cc8cf8d5e7c5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Fri, 2 Jun 2023 15:54:30 -0400
Subject: [PATCH] Fiddle with WM_NORMAL_HINTS a bit.

USize was wrong, PSize wasn't set, and PBaseSize was set, but flag wasn't.
---
 src/conio/x_events.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/conio/x_events.c b/src/conio/x_events.c
index 1c1dfcb69c..e7cf666719 100644
--- a/src/conio/x_events.c
+++ b/src/conio/x_events.c
@@ -383,6 +383,8 @@ static void map_window()
 	}
 
 	bitmap_get_scaled_win_size(x_cvstat.scaling, &sh->base_width, &sh->base_height, 0, 0);
+	sh->width = sh->base_width;
+	sh->height = sh->base_height;
 	bitmap_get_scaled_win_size(1.0, &sh->min_width, &sh->min_height, 0, 0);
 	pthread_mutex_unlock(&vstatlock);
 
@@ -395,7 +397,7 @@ static void map_window()
 		sh->min_aspect.y = sh->max_aspect.y = sh->min_height;
 	}
 
-	sh->flags = USSize | PMinSize | PSize | PAspect | PMaxSize;
+	sh->flags = PMinSize | PSize | PAspect | PMaxSize | PBaseSize;
 
 	x11.XSetWMNormalHints(dpy, win, sh);
 	pthread_mutex_lock(&vstatlock);
-- 
GitLab