]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix dimensions of child frames on w32 console
authorEli Zaretskii <eliz@gnu.org>
Sat, 26 Oct 2024 11:26:02 +0000 (14:26 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 14:53:38 +0000 (15:53 +0100)
* src/w32inevt.c (maybe_generate_resize_event): Don't generate
resize events for child frames.

(cherry picked from commit 0d6a014750c63a9a9d6e5bcc195e80bf58dfa276)

src/w32inevt.c

index 35d3420e39fffef1bcce26384015ecbc1d71cb61..95c0927b55bb300e2b9dcbb33205e8f4065fdaa1 100644 (file)
@@ -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