From 76ffd4427d5ea037b0945ea0dae5d844add91f44 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 2 Jun 2022 15:49:50 +0800 Subject: [PATCH] Fix macOS build * src/nsterm.m (ns_mouse_position): Fix typos. --- src/nsterm.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nsterm.m b/src/nsterm.m index b7b7bc2ad34..ecaca5b87fa 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -2337,8 +2337,8 @@ ns_mouse_position (struct frame **fp, int insist, Lisp_Object *bar_window, belowWindowWithWindowNumber: window_number]; w = [NSApp windowWithWindowNumber: window_number]; - if (EQ (EQ (track_mouse, Qdrag_source) - || EQ (track_mouse, Qdropping)) + if ((EQ (track_mouse, Qdrag_source) + || EQ (track_mouse, Qdropping)) && w && [[w delegate] isKindOfClass: [EmacsTooltip class]]) continue; -- 2.39.2