From: Gerd Möllmann Date: Mon, 5 Aug 2024 15:26:23 +0000 (+0200) Subject: ; Fix the fix for EmacsView X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3dd30038b97e4e75b82d9636679b1f74d3a189f5;p=emacs.git ; Fix the fix for EmacsView * src/nsterm.m ([EmacsView initFrameFromEmacs:]): Check if setClipsToBound is available. (cherry picked from commit 3ad4623bec49428fda34a475641eae9f1f33fc78) --- diff --git a/src/nsterm.m b/src/nsterm.m index 3f0669aeefe..be9142f7a4a 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -8074,7 +8074,8 @@ ns_in_echo_area (void) old_title = 0; maximizing_resize = NO; /* Restore to default before macOS 14 (bug#72440). */ - [self setClipsToBounds: YES]; + if ([self respondsToSelector:@selector(setClipsToBounds:)]) + [self setClipsToBounds: YES]; #endif #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MIN_REQUIRED >= 101400