emacs-diffs
[Top][All Lists]
Advanced

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

scratch/igc 05c19f8e543: Incorrect use of EmacsScroller.m_lisp_window


From: Gerd Moellmann
Subject: scratch/igc 05c19f8e543: Incorrect use of EmacsScroller.m_lisp_window
Date: Sun, 4 Aug 2024 09:12:45 -0400 (EDT)

branch: scratch/igc
commit 05c19f8e5439606f841689ef325a867951e04902
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>

    Incorrect use of EmacsScroller.m_lisp_window
    
    * src/nsterm.m ([EmacsScroller sendScrollEventAtLoc:fromEvent:]):
    Dereference m_lisp_window.
---
 src/nsterm.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index a7336486b48..4e516e642b7 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -10317,7 +10317,7 @@ nswindow_orderedIndex_sort (id w1, id w2, void *c)
   emacs_event->part = last_hit_part;
   emacs_event->code = 0;
   emacs_event->modifiers = EV_MODIFIERS (e) | down_modifier;
-  XSETWINDOW (win, m_lisp_window);
+  XSETWINDOW (win, *m_lisp_window);
   emacs_event->frame_or_window = win;
   emacs_event->timestamp = EV_TIMESTAMP (e);
   emacs_event->arg = Qnil;



reply via email to

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