diff options
author | Po Lu <luangruo@yahoo.com> | 2022-06-29 21:24:51 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-06-29 21:24:51 +0800 |
commit | d3492bcf3075ba1ca18fb9e759878c8467ae838c (patch) | |
tree | 6eedf6b3bd7ea34e497dfb20211e890330903a48 /src/xselect.c | |
parent | e83919f7214aad67995171b22dab8b76685943b9 (diff) | |
download | emacs-d3492bcf3075ba1ca18fb9e759878c8467ae838c.tar.gz emacs-d3492bcf3075ba1ca18fb9e759878c8467ae838c.tar.bz2 emacs-d3492bcf3075ba1ca18fb9e759878c8467ae838c.zip |
Fix handling invalidated selection requests
* src/xselect.c (x_handle_selection_request): Correctly punt
when !dpyinfo.
Diffstat (limited to 'src/xselect.c')
-rw-r--r-- | src/xselect.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |