emacs-diffs
[Top][All Lists]
Advanced

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

master 450f3f8725: Slightly fix mouse-highlight processing on Haiku


From: Po Lu
Subject: master 450f3f8725: Slightly fix mouse-highlight processing on Haiku
Date: Sun, 6 Mar 2022 05:43:34 -0500 (EST)

branch: master
commit 450f3f8725ff231aeda2738e25b4bb2cebe5a35b
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Slightly fix mouse-highlight processing on Haiku
    
    * src/haikuterm.c (haiku_read_socket): If no corresponding frame
    was found for a keyboard event, clear mouse highlight.
---
 src/haikuterm.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/haikuterm.c b/src/haikuterm.c
index c44b350c58..633e87fd43 100644
--- a/src/haikuterm.c
+++ b/src/haikuterm.c
@@ -2780,8 +2780,6 @@ haiku_read_socket (struct terminal *terminal, struct 
input_event *hold_quit)
            struct haiku_key_event *b = buf;
            Mouse_HLInfo *hlinfo = &x_display_list->mouse_highlight;
            struct frame *f = haiku_window_to_frame (b->window);
-           if (!f)
-             continue;
 
            /* If mouse-highlight is an integer, input clears out
               mouse highlighting.  */
@@ -2795,6 +2793,9 @@ haiku_read_socket (struct terminal *terminal, struct 
input_event *hold_quit)
                need_flush = 1;
              }
 
+           if (!f)
+             continue;
+
            inev.code = b->keysym ? b->keysym : b->multibyte_char;
 
            if (b->keysym)



reply via email to

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