summaryrefslogtreecommitdiff
path: root/src/Selection.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-17 19:03:42 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-17 19:03:42 +0000
commita6bdd56c5b098599942e4091ae7e2af2d4631b44 (patch)
treee0a23167aca0fb1127f4cd78edf458b633b31eac /src/Selection.c
parent6a13c9e08bb042c81ae904c44a38a50d785c824e (diff)
merge XFree86 4.3.0.1 to -CURRENT
Diffstat (limited to 'src/Selection.c')
-rw-r--r--src/Selection.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Selection.c b/src/Selection.c
index 846b1bd..0a5cd9d 100644
--- a/src/Selection.c
+++ b/src/Selection.c
@@ -58,11 +58,13 @@ used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
*/
+/* $XFree86: xc/lib/Xt/Selection.c,v 3.9 2001/12/14 19:56:29 dawes Exp $ */
#include "IntrinsicI.h"
#include "StringDefs.h"
#include "SelectionI.h"
#include <X11/Xatom.h>
+#include <stdio.h>
void _XtSetDefaultSelectionTimeout(timeout)
unsigned long *timeout;
@@ -614,13 +616,14 @@ Boolean *cont;
XtRemoveTimeOut(req->timeout);
#endif
if (req->allSent) {
- if (ctx->notify)
+ if (ctx->notify) {
if (ctx->incremental) {
(*(XtSelectionDoneIncrProc)ctx->notify)
(ctx->widget, &ctx->selection, &req->target,
(XtRequestId*)&req, ctx->owner_closure);
}
else (*ctx->notify)(ctx->widget, &ctx->selection, &req->target);
+ }
RemoveHandler(req, (EventMask)PropertyChangeMask,
HandlePropertyGone, closure);
XtFree((char*)req);