From 95c0e83b2a0995ef774d25163d4f66c23399da36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Sun, 7 Apr 2013 12:51:29 +0200 Subject: [PATCH] * nsterm.m (ns_mouse_position): Use NS_FRAME_P instead of checking f->output_data.ns. --- src/ChangeLog | 5 +++++ src/nsterm.m | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 75a7388f2c4..545df8e050f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-03-31 Jan Djärv + + * nsterm.m (ns_mouse_position): Use NS_FRAME_P instead of checking + f->output_data.ns. + 2013-04-07 Paul Eggert Fix --enable-profiling bug introduced by 2013-02-25 change (Bug#13783). diff --git a/src/nsterm.m b/src/nsterm.m index bc3150c0a07..f5b48ee4b11 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -1883,7 +1883,7 @@ ns_mouse_position (struct frame **fp, int insist, Lisp_Object *bar_window, f = dpyinfo->x_focus_frame ? dpyinfo->x_focus_frame : SELECTED_FRAME (); - if (f && f->output_data.ns) /* TODO: 2nd check no longer needed? */ + if (f && FRAME_NS_P (f)) { view = FRAME_NS_VIEW (*fp); -- 2.39.2