From: Po Lu Date: Wed, 29 Jun 2022 13:24:51 +0000 (+0800) Subject: Fix handling invalidated selection requests X-Git-Tag: emacs-29.0.90~1447^2~1382 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d3492bcf3075ba1ca18fb9e759878c8467ae838c;p=emacs.git Fix handling invalidated selection requests * src/xselect.c (x_handle_selection_request): Correctly punt when !dpyinfo. --- diff --git a/src/xselect.c b/src/xselect.c index 7993899b2c9..5796b0034a0 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -812,7 +812,7 @@ x_handle_selection_request (struct selection_input_event *event) pushed = false; if (!dpyinfo) - goto DONE; + goto REALLY_DONE; /* This is how the XDND protocol recommends dropping text onto a target that doesn't support XDND. */ @@ -910,6 +910,9 @@ x_handle_selection_request (struct selection_input_event *event) CALLN (Frun_hook_with_args, Qx_sent_selection_functions, selection_symbol, target_symbol, success ? Qt : Qnil); + /* Used to punt when dpyinfo is NULL. */ + REALLY_DONE: + unbind_to (count, Qnil); }