From 3dd30038b97e4e75b82d9636679b1f74d3a189f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerd=20M=C3=B6llmann?= Date: Mon, 5 Aug 2024 17:26:23 +0200 Subject: [PATCH] ; Fix the fix for EmacsView * src/nsterm.m ([EmacsView initFrameFromEmacs:]): Check if setClipsToBound is available. (cherry picked from commit 3ad4623bec49428fda34a475641eae9f1f33fc78) --- src/nsterm.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2