]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix the fix for EmacsView
authorGerd Möllmann <gerd@gnu.org>
Mon, 5 Aug 2024 15:26:23 +0000 (17:26 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 6 Aug 2024 09:55:37 +0000 (11:55 +0200)
* src/nsterm.m ([EmacsView initFrameFromEmacs:]): Check if
setClipsToBound is available.

(cherry picked from commit 3ad4623bec49428fda34a475641eae9f1f33fc78)

src/nsterm.m

index 3f0669aeefe2aba68b339f9c1a24267e5fe244b8..be9142f7a4a50b4467ed451859e371e8bff93e87 100644 (file)
@@ -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