summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2004-06-02 20:07:59 +0000
committerrecht <recht@pkgsrc.org>2004-06-02 20:07:59 +0000
commit47eec7bf5512ff4f05e6bf80285e70a9c548f945 (patch)
tree8cfc9bf972ac9c605a97a8c47f9b228682722a3d /x11
parent5c438c31f8f188f82167ef5c164f3375216b4151 (diff)
downloadpkgsrc-47eec7bf5512ff4f05e6bf80285e70a9c548f945.tar.gz
Add missing patch-af. Noted by Joachim Kuebart.
Diffstat (limited to 'x11')
-rw-r--r--x11/aterm/patches/patch-af43
1 files changed, 43 insertions, 0 deletions
diff --git a/x11/aterm/patches/patch-af b/x11/aterm/patches/patch-af
new file mode 100644
index 00000000000..ad1e1ba41b7
--- /dev/null
+++ b/x11/aterm/patches/patch-af
@@ -0,0 +1,43 @@
+$NetBSD: patch-af,v 1.1 2004/06/02 20:07:59 recht Exp $
+
+--- src/screen.c.orig 2001-09-06 18:38:07.000000000 +0200
++++ src/screen.c 2004-05-30 12:43:05.000000000 +0200
+@@ -3313,14 +3313,6 @@
+
+ /* ------------------------------------------------------------------------- */
+ /*
+- * On some systems, the Atom typedef is 64 bits wide. We need to have a type
+- * that is exactly 32 bits wide, because a format of 64 is not allowed by
+- * the X11 protocol.
+- */
+-typedef CARD32 Atom32;
+-
+-/* ------------------------------------------------------------------------- */
+-/*
+ * Respond to a request for our current selection
+ * EXT: SelectionRequest
+ */
+@@ -3329,7 +3321,7 @@
+ selection_send(XSelectionRequestEvent * rq)
+ {
+ XEvent ev;
+- Atom32 target_list[2];
++ Atom target_list[2];
+ static Atom xa_targets = None;
+
+ if (xa_targets == None)
+@@ -3344,10 +3336,10 @@
+ ev.xselection.time = rq->time;
+
+ if (rq->target == xa_targets) {
+- target_list[0] = (Atom32) xa_targets;
+- target_list[1] = (Atom32) XA_STRING;
+- XChangeProperty(Xdisplay, rq->requestor, rq->property, rq->target,
+- (8 * sizeof(target_list[0])), PropModeReplace,
++ target_list[0] = xa_targets;
++ target_list[1] = XA_STRING;
++ XChangeProperty(Xdisplay, rq->requestor, rq->property, XA_ATOM,
++ 32, PropModeReplace,
+ (unsigned char *)target_list,
+ (sizeof(target_list) / sizeof(target_list[0])));
+ ev.xselection.property = rq->property;