summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hajdaj <rhajdaj@gotnothin.com>2010-09-23 18:13:28 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-09-23 18:15:27 -0700
commit94680a56a32ada91f07db34e02a526dca5ecbbf4 (patch)
tree219e1c676782e5e9ca13203608c8292ff695e537
parentd53a3deb52100596bef9fb7b6c6e7ba15ed18bda (diff)
Bug 1478: Selection.c damages user error handler function
https://bugs.freedesktop.org/show_bug.cgi?id=1478 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-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;