]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve menu drag tracking on Haiku
authorPo Lu <luangruo@yahoo.com>
Sat, 29 Jan 2022 05:50:32 +0000 (05:50 +0000)
committerPo Lu <luangruo@yahoo.com>
Sat, 29 Jan 2022 05:50:32 +0000 (05:50 +0000)
* src/haikuterm.c (haiku_read_socket): Ignore all button events
when popup_activated_p.

src/haikuterm.c

index 5ff348fa5d9e1ed02e5af17a7651e6af99f80c3e..11b75fdde2575ba4f6bfb7c8de416dbebd3554a9 100644 (file)
@@ -2844,7 +2844,7 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit)
            int tab_bar_p = 0, tool_bar_p = 0;
            bool up_okay_p = false;
 
-           if (!f)
+           if (popup_activated_p || !f)
              continue;
 
            struct haiku_display_info *dpyinfo = FRAME_DISPLAY_INFO (f);
@@ -3324,6 +3324,7 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit)
     flush_dirty_back_buffers ();
 
   unblock_input ();
+
   return message_count;
 }