summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Selection.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Selection.c b/src/Selection.c
index b35b5a0..b10db13 100644
--- a/src/Selection.c
+++ b/src/Selection.c
@@ -831,9 +831,10 @@ static void HandleSelectionEvents(
event->xselectionrequest.property = event->xselectionrequest.target;
if (ctx->widget != widget || ctx->was_disowned
|| ((event->xselectionrequest.time != CurrentTime)
- && (event->xselectionrequest.time < ctx->time)))
+ && (event->xselectionrequest.time < ctx->time))) {
ev.property = None;
- else {
+ StartProtectedSection(ev.display, ev.requestor);
+ } else {
if (ev.target == ctx->prop_list->indirect_atom) {
IndirectPair *p;
int format;