]> git.eshelyaron.com Git - emacs.git/commit
Fix race conditions handling selection clear events on Haiku
authorPo Lu <luangruo@yahoo.com>
Sat, 9 Jul 2022 04:50:06 +0000 (04:50 +0000)
committerPo Lu <luangruo@yahoo.com>
Sat, 9 Jul 2022 04:50:35 +0000 (04:50 +0000)
commitedabfe4ff66090b3b2c433962df4cfe1a68259fd
tree89d27a45082768a61bdcbcb49bfb25a7f4637b98
parentf400c60237f04781b60423492c583beea6c77e8e
Fix race conditions handling selection clear events on Haiku

* src/haiku_select.cc (be_handle_clipboard_changed_message):
Include current clipboard count.
(be_selection_outdated_p): New function.
* src/haikuselect.c (haiku_handle_selection_clear): Ignore
outdated events.
(haiku_selection_disowned): New argument `count'.  Include it in
the timestamp field of the selection clear event.
* src/haikuselect.h: Update prototypes.
* src/systime.h: Define `Time' to an appropriate value on Haiku.
src/haiku_select.cc
src/haikuselect.c
src/haikuselect.h
src/systime.h