diff --git a/ChangeLog b/ChangeLog index ce7d576..cf8cb51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5560,3 +5560,8 @@ Wed May 14 14:54:16 2008 Michael Jennings (mej) Modified patch from hsim@gmx.li to allow setting of the "Urgent" hint on beep. ---------------------------------------------------------------------- +Wed May 14 15:26:13 2008 Michael Jennings (mej) + +Patch from Emmanuel Anne to fix cut/paste +with KDE applications. +---------------------------------------------------------------------- diff --git a/src/screen.c b/src/screen.c index b9caf7d..e554b1a 100644 --- a/src/screen.c +++ b/src/screen.c @@ -3320,7 +3320,7 @@ selection_send(XSelectionRequestEvent * rq) target_list[0] = (Atom32) props[PROP_SELECTION_TARGETS]; target_list[1] = (Atom32) XA_STRING; XChangeProperty(Xdisplay, rq->requestor, rq->property, rq->target, - (8 * sizeof(target_list[0])), PropModeReplace, (unsigned char *) target_list, + 8, PropModeReplace, (unsigned char *) target_list, (sizeof(target_list) / sizeof(target_list[0]))); ev.xselection.property = rq->property; #if defined(MULTI_CHARSET) && defined(HAVE_X11_XMU_ATOMS_H) @@ -3333,8 +3333,8 @@ selection_send(XSelectionRequestEvent * rq) xtextp.nitems = 0; if (XmbTextListToTextProperty(Xdisplay, l, 1, XCompoundTextStyle, &xtextp) == Success) { if (xtextp.nitems > 0 && xtextp.value != NULL) { - XChangeProperty(Xdisplay, rq->requestor, rq->property, XA_COMPOUND_TEXT(Xdisplay), 8, PropModeReplace, xtextp.value, - xtextp.nitems); + XChangeProperty(Xdisplay, rq->requestor, rq->property, XA_COMPOUND_TEXT(Xdisplay), + 8, PropModeReplace, xtextp.value, xtextp.nitems); ev.xselection.property = rq->property; } }