]> git.eshelyaron.com Git - emacs.git/commit
Speed up receiving drops over slow connections
authorPo Lu <luangruo@yahoo.com>
Sun, 3 Jul 2022 01:41:32 +0000 (09:41 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 3 Jul 2022 01:43:20 +0000 (09:43 +0800)
commit4ef1e4daf5e3569fed748f4487058d68a4c20ae6
tree172eee6e97e3f79127d0ac98a6c45cf311d6b45e
parent782e48b3dbae3d30d4fd8f2be90e9d9a0114210a
Speed up receiving drops over slow connections

* lisp/x-dnd.el (x-dnd-debug-errors): New variable.
(x-dnd-handle-drag-n-drop-event): Bind
`x-fast-protocol-requests' to t if that is off.

* src/xfns.c (Fx_change_window_property):
(Fx_delete_window_property):
* src/xselect.c (Fx_send_client_message, x_send_client_event):
Don't sync to check for errors if fast protocol requests are
enabled.

* src/xterm.c (x_catch_errors_for_lisp, x_check_errors_for_lisp)
(x_uncatch_errors_for_lisp): New functions.
(syms_of_xterm): New variable `x-fast-protocol-requests'.
* src/xterm.h: Update prototypes.
lisp/x-dnd.el
src/xfns.c
src/xselect.c
src/xterm.c
src/xterm.h