[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master d3492bcf30: Fix handling invalidated selection requests
From: |
Po Lu |
Subject: |
master d3492bcf30: Fix handling invalidated selection requests |
Date: |
Wed, 29 Jun 2022 09:25:06 -0400 (EDT) |
branch: master
commit d3492bcf3075ba1ca18fb9e759878c8467ae838c
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix handling invalidated selection requests
* src/xselect.c (x_handle_selection_request): Correctly punt
when !dpyinfo.
---
src/xselect.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/xselect.c b/src/xselect.c
index 7993899b2c..5796b0034a 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);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master d3492bcf30: Fix handling invalidated selection requests,
Po Lu <=