From: Gerd Möllmann Date: Mon, 5 Aug 2024 07:39:01 +0000 (+0200) Subject: Restore a default before macOS 14 API change (bug#72440) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=98d214912baa517242b2cc867fd27aa816a50be3;p=emacs.git Restore a default before macOS 14 API change (bug#72440) * src/nsterm.m ([EmacsView initFrameFromEmacs:]): Set clipsToBounds to YES. (cherry picked from commit 9253910a5a5ec89fe6e676e53f355f3b0bdc176e) --- diff --git a/src/nsterm.m b/src/nsterm.m index b883e605a5b..296e58c1697 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -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