From 7a1de9dad91468b972cb92a64f1138d633760603 Mon Sep 17 00:00:00 2001 From: id Date: Sun, 16 May 1999 02:22:42 +0000 Subject: [PATCH] Fix misc bugs. --- WINGs/selection.c | 2 +- WINGs/wtextfield.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WINGs/selection.c b/WINGs/selection.c index b3277e1f..98b6f64c 100644 --- a/WINGs/selection.c +++ b/WINGs/selection.c @@ -281,7 +281,7 @@ getInternalSelection(WMScreen *scr, Atom selection, Atom target, * do the conversion directly. */ - data = NULL; + *data = NULL; owner = XGetSelectionOwner(scr->display, selection); if (!owner) diff --git a/WINGs/wtextfield.c b/WINGs/wtextfield.c index 8b85c55d..8b7791d9 100644 --- a/WINGs/wtextfield.c +++ b/WINGs/wtextfield.c @@ -214,7 +214,7 @@ requestHandler(WMWidget *w, Atom selection, Atom target, Atom *type, ptr[0] = _TARGETS; ptr[1] = XA_STRING; ptr[2] = XInternAtom(dpy, "TEXT", False); - ptr[4] = XInternAtom(dpy, "COMPOUND_TEXT", False); + ptr[3] = XInternAtom(dpy, "COMPOUND_TEXT", False); *type = target; return True; }