]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix mouse face handling during frame reentry on Haiku
authorPo Lu <luangruo@yahoo.com>
Mon, 25 Jul 2022 09:38:06 +0000 (09:38 +0000)
committerPo Lu <luangruo@yahoo.com>
Mon, 25 Jul 2022 09:39:26 +0000 (09:39 +0000)
* src/haikuterm.c (haiku_read_socket): Clear
last_mouse_glyph_frame like on X.

src/haikuterm.c

index 7630d9c103c65e4e7de1fb2f4cff9b8b37da51b5..f2bee1263d3bd91b9a1cc66f296143f7238aeaa0 100644 (file)
@@ -3365,6 +3365,7 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit)
            if (b->just_exited_p)
              {
                Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f);
+
                if (f == hlinfo->mouse_face_mouse_frame)
                  {
                    /* If we move outside the frame, then we're
@@ -3375,6 +3376,9 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit)
                    haiku_flush_dirty_back_buffer_on (f);
                  }
 
+               if (f == x_display_list->last_mouse_glyph_frame)
+                 x_display_list->last_mouse_glyph_frame = NULL;
+
                if (f->auto_lower && !popup_activated_p
                    /* Don't do this if the mouse entered a scroll bar.  */
                    && !BView_inside_scroll_bar (FRAME_HAIKU_VIEW (f),