From: Eli Zaretskii Date: Sat, 26 Oct 2024 11:26:02 +0000 (+0300) Subject: Fix dimensions of child frames on w32 console X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=59c6db00af2c8001d7fb043a02bf41f339ec5986;p=emacs.git 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) --- 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