]> git.eshelyaron.com Git - emacs.git/commitdiff
* nsterm.m (ns_mouse_position): Use NS_FRAME_P instead of checking
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 7 Apr 2013 10:51:29 +0000 (12:51 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 7 Apr 2013 10:51:29 +0000 (12:51 +0200)
f->output_data.ns.

src/ChangeLog
src/nsterm.m

index 75a7388f2c49525f84091e48f1c71e4b12ca1208..545df8e050f5df312904d944ec19d82057848ffc 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-31  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (ns_mouse_position): Use NS_FRAME_P instead of checking
+       f->output_data.ns.
+
 2013-04-07  Paul Eggert  <eggert@cs.ucla.edu>
 
        Fix --enable-profiling bug introduced by 2013-02-25 change (Bug#13783).
index bc3150c0a075d970e3a7f99d9b269ea2e8f56e02..f5b48ee4b112d01411089d9f2e2af0aa8c23d369 100644 (file)
@@ -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);