]> git.eshelyaron.com Git - emacs.git/commitdiff
Restore a default before macOS 14 API change (bug#72440)
authorGerd Möllmann <gerd@gnu.org>
Mon, 5 Aug 2024 07:39:01 +0000 (09:39 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 6 Aug 2024 09:55:29 +0000 (11:55 +0200)
* src/nsterm.m ([EmacsView initFrameFromEmacs:]): Set clipsToBounds to
YES.

(cherry picked from commit 9253910a5a5ec89fe6e676e53f355f3b0bdc176e)

src/nsterm.m

index b883e605a5b046537bea8e7f57c74da436218cf3..296e58c169784bc833c47647facc698a7677198c 100644 (file)
@@ -8073,6 +8073,9 @@ ns_in_echo_area (void)
 #ifdef NS_IMPL_COCOA
   old_title = 0;
   maximizing_resize = NO;
+  /* Restore to default before macOS 14 (bug#72440).  */
+  if (NSAppKitVersionNumber >= NSAppKitVersionNumber14_0)
+    [self setClipsToBounds: YES];
 #endif
 
 #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MIN_REQUIRED >= 101400