emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-26 00e4e3e: Fix undecorated frame resizing issues on


From: Alan Third
Subject: [Emacs-diffs] emacs-26 00e4e3e: Fix undecorated frame resizing issues on NS (bug#28512)
Date: Sat, 23 Sep 2017 14:56:13 -0400 (EDT)

branch: emacs-26
commit 00e4e3e9d273a193620c3a4bb4914e555cb8e343
Author: Alan Third <address@hidden>
Commit: Alan Third <address@hidden>

    Fix undecorated frame resizing issues on NS (bug#28512)
    
    * src/nsterm.m (EmacsView::updateFrameSize): Don't wait for the
    toolbar on undecorated frames.
    (EmacsView::initFrameFromEmacs): Group window flags correctly.
---
 src/nsterm.m | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index a41d6be..fb3ebc9 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6824,9 +6824,10 @@ not_in_argv (NSString *arg)
 
   if (wait_for_tool_bar)
     {
-      /* The toolbar height is always 0 in fullscreen, so don't wait
-         for it to become available. */
+      /* The toolbar height is always 0 in fullscreen and undecorated
+         frames, so don't wait for it to become available. */
       if (FRAME_TOOLBAR_HEIGHT (emacsframe) == 0
+          && FRAME_UNDECORATED (emacsframe) == false
           && ! [self isFullscreen])
         {
           NSTRACE_MSG ("Waiting for toolbar");
@@ -7207,9 +7208,9 @@ not_in_argv (NSString *arg)
 
   win = [[EmacsWindow alloc]
             initWithContentRect: r
-                      styleMask: (FRAME_UNDECORATED (f)
-                                  ? FRAME_UNDECORATED_FLAGS
-                                  : FRAME_DECORATED_FLAGS
+                      styleMask: ((FRAME_UNDECORATED (f)
+                                   ? FRAME_UNDECORATED_FLAGS
+                                   : FRAME_DECORATED_FLAGS)
 #ifdef NS_IMPL_COCOA
                                   | NSWindowStyleMaskResizable
                                   | NSWindowStyleMaskMiniaturizable



reply via email to

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