pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
xnedit: Add patch to fix insert from X11 primary selection
Module Name: pkgsrc-wip
Committed By: Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By: micha
Date: Fri Jan 21 17:13:56 2022 +0100
Changeset: 2bfbb6c4b9a06bb56f349f8aeeb38c172cad386b
Modified Files:
xnedit/distinfo
Added Files:
xnedit/patches/patch-source_textSel.c
Log Message:
xnedit: Add patch to fix insert from X11 primary selection
Formerly this worked only sometimes, e.g. from a GTK3-Widget.
It failed completely in other cases, e.g. from a FLTK-Widget.
The patch unconditionally enables a codepath formerly guarded by
__APPLE__, but seems to work correctly on NetBSD too.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2bfbb6c4b9a06bb56f349f8aeeb38c172cad386b
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
xnedit/distinfo | 1 +
xnedit/patches/patch-source_textSel.c | 20 ++++++++++++++++++++
2 files changed, 21 insertions(+)
diffs:
diff --git a/xnedit/distinfo b/xnedit/distinfo
index 215b961539..c908af14c5 100644
--- a/xnedit/distinfo
+++ b/xnedit/distinfo
@@ -4,3 +4,4 @@ BLAKE2s (xnedit-1.4.0.tar.gz) = 6d36770d496e3e7fed8c907bf86073e0bba5e77f264565d2
SHA512 (xnedit-1.4.0.tar.gz) = eba465679984290b5ff1c0584c78fadf78d96b6daef8e78b772bee4e6b4278c025c5f2b22f0688ed3f8bcdea6d54cb6154727cf0d7c53372d908d7d1fb80a401
Size (xnedit-1.4.0.tar.gz) = 1509634 bytes
SHA1 (patch-makefiles_Makefile.netbsd) = c739f640987cfed40cc673d3fcb68e3fe94d3b6f
+SHA1 (patch-source_textSel.c) = 6f32461596f461a23d68f616add43d5a6b28df65
diff --git a/xnedit/patches/patch-source_textSel.c b/xnedit/patches/patch-source_textSel.c
new file mode 100644
index 0000000000..06ffa85d55
--- /dev/null
+++ b/xnedit/patches/patch-source_textSel.c
@@ -0,0 +1,20 @@
+$NetBSD$
+
+Enable codepath for Apple operating systems unconditionally.
+
+Otherwise inserting the X11 primary selection does not work in some cases
+(e.g. with selections from FLTK widgets on NetBSD).
+
+--- source/textSel.c.orig 2022-01-09 12:28:40.000000000 +0000
++++ source/textSel.c
+@@ -251,7 +251,9 @@ void InsertPrimarySelection(Widget w, Ti
+
+ selectionTime = time;
+
+-#ifdef __APPLE__
++
++/* #ifdef __APPLE__ */
++#if 1
+ XtGetSelectionValue(w, XA_PRIMARY, targets[1], getSelectionCB, sel, time);
+ XtGetSelectionValue(w, XA_PRIMARY, targets[0], getSelectionCB, sel, time);
+ #else
Home |
Main Index |
Thread Index |
Old Index