From 59c6db00af2c8001d7fb043a02bf41f339ec5986 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 26 Oct 2024 14:26:02 +0300 Subject: [PATCH] Fix dimensions of child frames on w32 console * src/w32inevt.c (maybe_generate_resize_event): Don't generate resize events for child frames. (cherry picked from commit 0d6a014750c63a9a9d6e5bcc195e80bf58dfa276) --- src/w32inevt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/w32inevt.c b/src/w32inevt.c index 35d3420e39f..95c0927b55b 100644 --- a/src/w32inevt.c +++ b/src/w32inevt.c @@ -619,6 +619,10 @@ maybe_generate_resize_event (void) CONSOLE_SCREEN_BUFFER_INFO info; struct frame *f = get_frame (); + /* Only resize the root frame. */ + if (FRAMEP (f->parent_frame)) + return; + GetConsoleScreenBufferInfo (GetStdHandle (STD_OUTPUT_HANDLE), &info); /* It is okay to call this unconditionally, since it will do nothing -- 2.39.5