Subversion Repositories ssvnc

Compare Revisions

Ignore whitespace Rev 58 → Rev 59

/ssvnc/trunk/debian/changelog
3,8 → 3,11
* no-mkmf.patch: Replace Imake-generated Makefiles with simple ones in
preparation for the removal of xmkkf (Closes: #888009, #997646).
Thanks to Helmut Grohne <helmut@subdivi.de>.
* sendclipboard-fix.patch: Make sure that -sendclipboard actually uses
the clipboard (Closes: #841854). Thanks to OmegaPhil
<OmegaPhil@startmail.com>.
 
-- Magnus Holmgren <holmgren@debian.org> Thu, 06 Jan 2022 20:54:56 +0100
-- Magnus Holmgren <holmgren@debian.org> Thu, 06 Jan 2022 21:33:13 +0100
 
ssvnc (1.0.29-5) unstable; urgency=high
 
/ssvnc/trunk/debian/patches/sendclipboard-fix.patch
0,0 → 1,28
Description: Make sure that -sendclipboard actually uses the clipboard
Author: OmegaPhil <OmegaPhil@startmail.com>
Bug-Debian: https://bugs.debian.org/841854
 
diff --git a/vnc_unixsrc/vncviewer/selection.c b/vnc_unixsrc/vncviewer/selection.c
index 48b0a98..beb6916 100644
--- a/vnc_unixsrc/vncviewer/selection.c
+++ b/vnc_unixsrc/vncviewer/selection.c
@@ -199,12 +199,18 @@ GetSelectionTimeCallback(Widget w, XtPointer clientData, Atom* selection,
Atom* type, XtPointer value, unsigned long* length,
int* format)
{
+ Atom sendsel = XA_PRIMARY;
+
+ if (appData.sendClipboard && clipboard_atom != None) {
+ sendsel = clipboard_atom;
+ }
+
if (value && *format == 32 && *length == 1) {
Time t = *(CARD32 *)value;
if (TIME_LATER(t, prevSelectionTime)) {
prevSelectionTime = t;
- XtGetSelectionValue(w, XA_PRIMARY, XA_STRING, GetSelectionCallback, NULL, CurrentTime);
+ XtGetSelectionValue(w, sendsel, XA_STRING, GetSelectionCallback, NULL, CurrentTime);
}
} else if (!getenv("VNCVIEWER_NO_CUTBUFFER")) {
if (TIME_LATER(cutBufferTime, prevSelectionTime)) {
/ssvnc/trunk/debian/patches/series
11,3 → 11,4
libvncclient_CVE-2018-20022.patch
libvncclient_CVE-2018-20024.patch
no-xmkmf.patch
sendclipboard-fix.patch