emacs-diffs
[Top][All Lists]
Advanced

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

master 6ac7fa7e78: Fix reporting of last-event-device for synthetic even


From: Po Lu
Subject: master 6ac7fa7e78: Fix reporting of last-event-device for synthetic events
Date: Thu, 7 Apr 2022 20:23:25 -0400 (EDT)

branch: master
commit 6ac7fa7e78b84a6fbdf12a63d927ad55bacd8d91
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix reporting of last-event-device for synthetic events
    
    * src/keyboard.c (read_char): Clear `last-event-device' earlier.
---
 src/keyboard.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/keyboard.c b/src/keyboard.c
index 8142ffec2d..01274b4d4a 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2465,6 +2465,7 @@ read_char (int commandflag, Lisp_Object map,
   else
     reread = false;
 
+  Vlast_event_device = Qnil;
 
   if (CONSP (Vunread_command_events))
     {
@@ -2525,8 +2526,6 @@ read_char (int commandflag, Lisp_Object map,
       goto reread_for_input_method;
     }
 
-  Vlast_event_device = Qnil;
-
   if (!NILP (Vexecuting_kbd_macro))
     {
       /* We set this to Qmacro; since that's not a frame, nobody will



reply via email to

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