mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
$NetBSD: patch-al,v 1.1 2006/06/20 13:07:20 martin Exp $
|
|
|
|
--- src/screen.c.orig 2003-03-23 17:56:06.000000000 +0100
|
|
+++ src/screen.c 2006-06-20 14:52:21.000000000 +0200
|
|
@@ -3515,11 +3515,12 @@ rxvt_selection_send(rxvt_t *r, const XSe
|
|
{
|
|
XSelectionEvent ev;
|
|
#ifdef USE_XIM
|
|
- Atom32 target_list[4];
|
|
+ long target_list[4];
|
|
#else
|
|
- Atom32 target_list[3];
|
|
+ long target_list[3];
|
|
#endif
|
|
Atom target;
|
|
+ long time;
|
|
XTextProperty ct;
|
|
XICCEncodingStyle style;
|
|
char *cl[2], dummy[1];
|
|
@@ -3540,16 +3541,17 @@ rxvt_selection_send(rxvt_t *r, const XSe
|
|
target_list[3] = (Atom32) r->h->xa[XA_COMPOUND_TEXT];
|
|
#endif
|
|
XChangeProperty(r->Xdisplay, rq->requestor, rq->property, XA_ATOM,
|
|
- (8 * sizeof(target_list[0])), PropModeReplace,
|
|
+ 32, PropModeReplace,
|
|
(unsigned char *)target_list,
|
|
(sizeof(target_list) / sizeof(target_list[0])));
|
|
ev.property = rq->property;
|
|
} else if (rq->target == r->h->xa[XA_MULTIPLE]) {
|
|
/* TODO: Handle MULTIPLE */
|
|
} else if (rq->target == r->h->xa[XA_TIMESTAMP] && r->selection.text) {
|
|
+ time = r->h->selection_time;
|
|
XChangeProperty(r->Xdisplay, rq->requestor, rq->property, XA_INTEGER,
|
|
- (8 * sizeof(Time)), PropModeReplace,
|
|
- (unsigned char *)&r->h->selection_time, 1);
|
|
+ 32, PropModeReplace,
|
|
+ (unsigned char *)&time, 1);
|
|
ev.property = rq->property;
|
|
} else if (rq->target == XA_STRING
|
|
|| rq->target == r->h->xa[XA_COMPOUND_TEXT]
|