Remove selection requests on the keyboard buffer when closing display
* src/xterm.c (X_NEXT_KBD_EVENT): New macro. (x_defer_selection_requests): Set input_pending if the kbd buffer was modified. (x_delete_selection_requests): New function. (x_delete_display): Call that. Bug found when a display died while the clipboard manager was sending an unreasonably high number of requests.
Showing with 55 additions and 4 deletions