From 94680a56a32ada91f07db34e02a526dca5ecbbf4 Mon Sep 17 00:00:00 2001 From: Ryan Hajdaj Date: Thu, 23 Sep 2010 18:13:28 -0700 Subject: Bug 1478: Selection.c damages user error handler function https://bugs.freedesktop.org/show_bug.cgi?id=1478 Signed-off-by: Alan Coopersmith --- src/Selection.c | 5 +++-- 1 file 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; -- cgit v1.2.3