bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#48162: 28.0.50; Resizing using set-frame-width doesn't expand mode-l


From: martin rudalics
Subject: bug#48162: 28.0.50; Resizing using set-frame-width doesn't expand mode-line
Date: Sun, 2 May 2021 18:12:45 +0200

> This is occurring on MacOS build. Branch: master.
> Steps:
> 1. ./src/emacs -Q
> 2. M-x set-frame-width RET 160 RET
>
> Result: Frame size is increased but mode-line still has original width.

Could you please try the patch below.

Thanks, martin


diff --git a/src/nsterm.m b/src/nsterm.m
index 6e7ab1266b..b089146e64 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -7310,9 +7310,9 @@ - (void)viewDidResize:(NSNotification *)notification

   /* Don't want to do anything when the view size hasn't changed. */
   if ((oldh == newh && oldw == neww)
-      || (emacsframe->new_size_p
-          && newh == emacsframe->new_height
-          && neww == emacsframe->new_width))
+      && (!emacsframe->new_size_p
+          || (newh == emacsframe->new_height
+             && neww == emacsframe->new_width)))
     {
       NSTRACE_MSG ("No change");
       return;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]