From c580fb9ec79198d644339ef59190acb2e380092b Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 22 Sep 2022 16:18:53 +0900 Subject: [PATCH] [console] Add a comment about console resizing Due to design issues in the console API that I don't feel like addressing at this stage, the console view is not a child of the client's screen view (not even sure it should be in the first place), so it won't get resized automatically when the client's screen view resizes. However, ie_app_window is sent when the screen size changes, and the console has to process input events anyway, so it's quite reasonable to handle the event. --- libs/console/client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/console/client.c b/libs/console/client.c index 91f512cd1..40ad2ebf2 100644 --- a/libs/console/client.c +++ b/libs/console/client.c @@ -678,6 +678,10 @@ exec_line (inputline_t *il) Con_ExecLine (il->line); } +// The console view is not a child of the client's screen view, so it won't +// get resized automatically when the screen changes size. However, since the +// console has to process input events anyway, handling ie_app_window is a +// reasonable alternative. static void con_app_window (const IE_event_t *event) {