emacs-diffs
[Top][All Lists]
Advanced

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

master 672a296d3b: Use correct event structures to fetch time on XI2


From: Po Lu
Subject: master 672a296d3b: Use correct event structures to fetch time on XI2
Date: Sat, 7 May 2022 21:07:25 -0400 (EDT)

branch: master
commit 672a296d3b353249ed829a7164c3db55ee204e47
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Use correct event structures to fetch time on XI2
    
    * src/xterm.c (handle_one_xevent): Don't use generic `xi_event'
    to access the event time.
---
 src/xterm.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index 848389ce96..2fc4c559a9 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -16807,7 +16807,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
              ev.window = enter->event;
              ev.time = enter->time;
 
-             x_display_set_last_user_time (dpyinfo, xi_event->time);
+             x_display_set_last_user_time (dpyinfo, enter->time);
 
 #ifdef USE_MOTIF
              use_copy = true;
@@ -16955,7 +16955,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                                                         leave->deviceid, 
false);
 #endif
 
-             x_display_set_last_user_time (dpyinfo, xi_event->time);
+             x_display_set_last_user_time (dpyinfo, leave->time);
 
 #ifdef HAVE_XWIDGETS
              {
@@ -17572,7 +17572,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                {
 #ifndef USE_TOOLKIT_SCROLL_BARS
                  struct scroll_bar *bar
-                   = x_window_to_scroll_bar (xi_event->display, xev->event, 2);
+                   = x_window_to_scroll_bar (dpyinfo->display, xev->event, 2);
 
                  if (bar)
                    x_scroll_bar_note_movement (bar, &ev);
@@ -19149,7 +19149,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
 
              device = xi_device_from_id (dpyinfo, pev->deviceid);
              source = xi_device_from_id (dpyinfo, pev->sourceid);
-             x_display_set_last_user_time (dpyinfo, xi_event->time);
+             x_display_set_last_user_time (dpyinfo, pev->time);
 
              if (!device)
                goto XI_OTHER;



reply via email to

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