diff options
author | Po Lu <luangruo@yahoo.com> | 2022-04-12 00:47:38 +0000 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-04-12 00:47:38 +0000 |
commit | 1ef57361ab784fb15fbc6a8e14600de395fe6b75 (patch) | |
tree | 5f9230a7900194102fadcc964e6f8fc20c0882e7 | |
parent | 60f66cc2a29cfdfa1f5547bda874274b92a067e2 (diff) | |
download | emacs-1ef57361ab784fb15fbc6a8e14600de395fe6b75.tar.gz |
Fix last tool bar bug on Haiku as well
* src/haikuterm.c (haiku_read_socket): Adapt last change to
Haiku.
-rw-r--r-- | src/haikuterm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/haikuterm.c b/src/haikuterm.c index 1270fba4101..f07e9e0b296 100644 --- a/src/haikuterm.c +++ b/src/haikuterm.c @@ -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) { |