emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 63e6f4c: Fixed OS X 10.6.8 build issue (bug#21862


From: Anders Lindgren
Subject: [Emacs-diffs] emacs-25 63e6f4c: Fixed OS X 10.6.8 build issue (bug#21862).
Date: Sun, 15 Nov 2015 17:52:49 +0000

branch: emacs-25
commit 63e6f4c820bb677bc915445c99041a51aef6bdab
Author: Anders Lindgren <address@hidden>
Commit: Anders Lindgren <address@hidden>

    Fixed OS X 10.6.8 build issue (bug#21862).
    
    * src/nsterm.h (EmacsView): Add missing declarations.
    * src/nsterm.m ([EmacsView windowDidBecomeKey]): New method, like
    the standard method but without the notification parameter.
    Intended to be used for direct calls.
    ([EmacsView windowDidEnterFullScreen]): Call the non-notification
    version of `windowDidBecomeKey'. Made the notification method call
    the non-notification method instead of the vice versa.
    (NSWindowDidEnterFullScreenNotification): Deleted, no longer
    needed.
---
 src/nsterm.h |    7 +++++++
 src/nsterm.m |   21 +++++++++++----------
 2 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/src/nsterm.h b/src/nsterm.h
index 1b330f0..7828af7 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -412,6 +412,13 @@ void nstrace_leave(int *);
 - (void)windowDidMove: (id)sender;
 #endif
 - (int)fullscreenState;
+
+/* Non-notification versions of NSView methods. Used for direct calls. */
+- (void)windowWillEnterFullScreen;
+- (void)windowDidEnterFullScreen;
+- (void)windowWillExitFullScreen;
+- (void)windowDidExitFullScreen;
+- (void)windowDidBecomeKey;
 @end
 
 
diff --git a/src/nsterm.m b/src/nsterm.m
index 5c39d5c..397ade1 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6440,6 +6440,12 @@ not_in_argv (NSString *arg)
 - (void)windowDidBecomeKey: (NSNotification *)notification
 /* cf. x_detect_focus_change(), x_focus_changed(), x_new_focus_frame() */
 {
+  [self windowDidBecomeKey];
+}
+
+
+- (void)windowDidBecomeKey      /* for direct calls */
+{
   struct ns_display_info *dpyinfo = FRAME_DISPLAY_INFO (emacsframe);
   struct frame *old_focus = dpyinfo->x_focus_frame;
 
@@ -6866,10 +6872,6 @@ not_in_argv (NSString *arg)
 }
 #endif
 
-#if !defined (NS_IMPL_COCOA) || MAC_OS_X_VERSION_MAX_ALLOWED < 
MAC_OS_X_VERSION_10_7
-#define NSWindowDidEnterFullScreenNotification 
"NSWindowDidEnterFullScreenNotification"
-#endif
-
 - (void)windowWillEnterFullScreen:(NSNotification *)notification
 {
   [self windowWillEnterFullScreen];
@@ -6880,19 +6882,18 @@ not_in_argv (NSString *arg)
   fs_before_fs = fs_state;
 }
 
-- (void)windowDidEnterFullScreen /* provided for direct calls */
+- (void)windowDidEnterFullScreen:(NSNotification *)notification
 {
-  [self windowDidEnterFullScreen:
-             [NSNotification 
notificationWithName:NSWindowDidEnterFullScreenNotification
-                                           object:[self window]]];
+  [self windowDidEnterFullScreen];
 }
-- (void)windowDidEnterFullScreen:(NSNotification *)notification
+
+- (void)windowDidEnterFullScreen /* provided for direct calls */
 {
   NSTRACE ("windowDidEnterFullScreen");
   [self setFSValue: FULLSCREEN_BOTH];
   if (! [self fsIsNative])
     {
-      [self windowDidBecomeKey:notification];
+      [self windowDidBecomeKey];
       [nonfs_window orderOut:self];
     }
   else



reply via email to

[Prev in Thread] Current Thread [Next in Thread]