summaryrefslogtreecommitdiff
path: root/src/xfns.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-12-15 20:06:37 +0800
committerPo Lu <luangruo@yahoo.com>2022-12-15 20:06:59 +0800
commitdb69249b761a80158c1469b2a169d6f5c8509ae1 (patch)
tree8d2e5f817c399f3b86bb777062651b9bba25faf7 /src/xfns.c
parent09a985ae9f486b7bba933c17e99eeff22207a87e (diff)
downloademacs-db69249b761a80158c1469b2a169d6f5c8509ae1.tar.gz
Handle selection transfer errors earlier
* src/xselect.c (x_decline_selection_request, struct transfer) (struct x_selection_request, x_cancel_selection_transfer) (x_start_selection_transfer, x_continue_selection_transfer): Give the right serial to x_ignore_errors_for_next_request. (x_handle_selection_error): New function. (x_reply_selection_request): Give the right serial to x_ignore_errors_for_next_request. * src/xterm.c (x_ignore_errors_for_next_request): New arg `selection_serial'. All callers changed. (x_error_handler): Call selection error handler. * src/xterm.h (struct x_failable_request): New field `selection_serial'.
Diffstat (limited to 'src/xfns.c')
-rw-r--r--src/xfns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 2bf282fd243..668f711bdb5 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1367,7 +1367,7 @@ x_set_mouse_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
XCreateFontCursor is not a request that waits for a reply,
and as such can return IDs that will not actually be used by
the server. */
- x_ignore_errors_for_next_request (FRAME_DISPLAY_INFO (f));
+ x_ignore_errors_for_next_request (FRAME_DISPLAY_INFO (f), 0);
/* Free any successfully created cursors. */
for (i = 0; i < mouse_cursor_max; i++)