Rework NS event handling (bug#25265)
commite0e5b0f4a4ce1d19ee0240c514dedd873d4165dc
authorAlan Third <alan@idiocy.org>
Sat, 31 Dec 2016 10:31:19 +0000 (31 10:31 +0000)
committerAlan Third <alan@idiocy.org>
Sat, 31 Dec 2016 16:55:30 +0000 (31 16:55 +0000)
tree0d629fd5b378ae23237d69ca670e36b582491b3f
parent4bbd5424a2290ab4bd88c0af602b7aa7d53a407e
Rework NS event handling (bug#25265)

* src/nsterm.m (unwind_apploopnr): Remove.
(ns_read_socket): Remove references to apploopnr.  Make processing the
NS event loop conditional on being in the main thread.
(ns_select): Remove references to apploopnr.  Remove all fd_handler
related stuff.  Check if there are events waiting on the NS event
queue rather than running the event loop.  Remove unused variables and
code.
(fd_handler): Remove.
(ns_term_init): Remove creation of fd_handler thread.
(hold_event, EmacsApp:sendEvent, EmacsView:mouseMoved,
EmacsView:windowDidExpose): Remove send_appdefined.
(ns_send_appdefined): Always check the event queue for
applicationDefined events rather than relying on send_appdefined var.
* src/nsterm.h: Remove reference to fd_handler method.
src/nsterm.h
src/nsterm.m