]> code.delx.au - gnu-emacs/commitdiff
Fixed NextStep fullscreen problem (bug#21770).
authorAnders Lindgren <andlind@gmail.com>
Fri, 6 Nov 2015 21:39:02 +0000 (22:39 +0100)
committerAnders Lindgren <andlind@gmail.com>
Fri, 6 Nov 2015 21:39:02 +0000 (22:39 +0100)
* nsterm.m (ns_constrain_all_frames): Don't constrain fullscreen
frames.

src/nsterm.m

index 4f97276d7945e037d4551320ddfb4f0cb0694f2a..b4ec553d7ee52c5f6acf08819acec64e388e028e 100644 (file)
@@ -839,6 +839,9 @@ static NSRect constrain_frame_rect(NSRect frameRect)
 
 static void
 ns_constrain_all_frames (void)
+/* --------------------------------------------------------------------------
+     Ensure that the menu bar doesn't cover any frames.
+   -------------------------------------------------------------------------- */
 {
   Lisp_Object tail, frame;
 
@@ -851,10 +854,14 @@ ns_constrain_all_frames (void)
       struct frame *f = XFRAME (frame);
       if (FRAME_NS_P (f))
         {
-          NSView *view = FRAME_NS_VIEW (f);
+          EmacsView *view = FRAME_NS_VIEW (f);
 
-          [[view window] setFrame:constrain_frame_rect([[view window] frame])
-                          display:NO];
+          if (![view isFullscreen])
+            {
+              [[view window]
+                setFrame:constrain_frame_rect([[view window] frame])
+                 display:NO];
+            }
         }
     }
 
@@ -862,10 +869,11 @@ ns_constrain_all_frames (void)
 }
 
 
-/* Show or hide the menu bar, based on user setting.  */
-
 static void
 ns_update_auto_hide_menu_bar (void)
+/* --------------------------------------------------------------------------
+     Show or hide the menu bar, based on user setting.
+   -------------------------------------------------------------------------- */
 {
 #ifdef NS_IMPL_COCOA
   NSTRACE ("ns_update_auto_hide_menu_bar");