]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix last tool bar bug on Haiku as well
authorPo Lu <luangruo@yahoo.com>
Tue, 12 Apr 2022 00:47:38 +0000 (00:47 +0000)
committerPo Lu <luangruo@yahoo.com>
Tue, 12 Apr 2022 00:47:38 +0000 (00:47 +0000)
* src/haikuterm.c (haiku_read_socket): Adapt last change to
Haiku.

src/haikuterm.c

index 1270fba4101c45ef4c1282f67e8470c127879499..f07e9e0b29612feb7c4ed658d131a5a2e6672672 100644 (file)
@@ -3213,7 +3213,9 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit)
                int y = b->y;
 
                window = window_from_coordinates (f, x, y, 0, true, true);
-               tool_bar_p = EQ (window, f->tool_bar_window);
+               tool_bar_p = (EQ (window, f->tool_bar_window)
+                             && (type != BUTTON_UP
+                                 || f->last_tool_bar_item != -1));
 
                if (tool_bar_p)
                  {