debian/0000755000000000000000000000000012257323115007167 5ustar debian/source/0000755000000000000000000000000012243153302010461 5ustar debian/source/format0000644000000000000000000000001412243153302011667 0ustar 3.0 (quilt) debian/clean0000644000000000000000000000016712257320032010173 0ustar Makefile.in aclocal.m4 config.h.in configure compile config.guess config.sub depcomp install-sh ltmain.sh m4/* missing debian/changelog0000644000000000000000000000335612257321276011056 0ustar autocutsel (0.9.1-2) unstable; urgency=medium * have autocutsel set WM_NAME and friends (Closes: #643847) Thanks: Michael Stapelberg -- Elmar S. Heeb Fri, 27 Dec 2013 16:54:33 +0100 autocutsel (0.9.1-1) unstable; urgency=low * new upstream release * dropped patch (applied upstream) * new Standards-Version * updated debian/watch file -- Elmar S. Heeb Fri, 22 Nov 2013 15:39:53 +0100 autocutsel (0.9.0-3) unstable; urgency=low * fix cutsel segfault for empty cut buffer (Closes: #727775) Thanks: Jurij Smakov * increase debhelper compatibility level to 9 * refactor debian/rules: * convert to dh_auto_* style * rewrite for debhelper compatibility level 9 * finally convert to dh style -- Elmar S. Heeb Tue, 29 Oct 2013 17:13:24 +0100 autocutsel (0.9.0-2) unstable; urgency=low * removed unknown command .HA from autocutsel.1 man page * bumped standards version to 3.9.2 (no changes) * added ${misc:Depends} to debian/control * added recommended targets to debian/rules * updated Uploaders in debian/control * added VCS fields to debian/control * explicitly put packaging under GPL 2+ * fix hyphens in cutsel.1 man page * use dh_autotools-dev_*config * remove extra blank lines from debian/rules * explicitly mention copyright in front of (C) * added hardening build flags * Switch to dpkg-source 3.0 (quilt) format -- Elmar S. Heeb Mon, 04 Jun 2012 13:56:28 +0200 autocutsel (0.9.0-1) unstable; urgency=low * Initial release (Closes: #409084) * changed Uploaders in debian/control * added debian/watch -- Elmar S. Heeb Thu, 3 Jan 2008 12:26:47 +0100 debian/compat0000644000000000000000000000000212243153302010357 0ustar 9 debian/patches/0000755000000000000000000000000012257315250010617 5ustar debian/patches/643847-window-properties.patch0000644000000000000000000000326012257315250016117 0ustar From 5fb015f982ed7d76242c0ce1b8132ccc1d42373f Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 2 Dec 2013 15:53:34 +0100 Subject: [PATCH] have autocutsel set WM_NAME and friends --- autocutsel.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/autocutsel.c b/autocutsel.c index b04fd25..9342574 100644 --- a/autocutsel.c +++ b/autocutsel.c @@ -355,6 +355,35 @@ int main(int argc, char* argv[]) XtAppAddTimeOut(context, options.pause, timeout, 0); XtRealizeWidget(top); XUnmapWindow(XtDisplay(top), XtWindow(top)); + + /* Set up window properties so that the PID of the relevant autocutsel + * process is known and autocutsel windows can be identified as such when + * debugging. */ + const int _NET_WM_NAME = 0; + const int UTF8_STRING = 1; + const int WM_NAME = 2; + const int STRING = 3; + const int _NET_WM_PID = 4; + const int CARDINAL = 5; + + Atom atoms[6]; + char *names[6] = { + "_NET_WM_NAME", + "UTF8_STRING", + "WM_NAME", + "STRING", + "_NET_WM_PID", + "CARDINAL", + }; + XInternAtoms(dpy, names, 6, 0, atoms); + + const char *window_name = "autocutsel"; + pid_t pid = getpid(); + + XChangeProperty(dpy, XtWindow(top), atoms[_NET_WM_NAME], atoms[UTF8_STRING], 8, PropModeReplace, (const unsigned char*)window_name, strlen(window_name)); + XChangeProperty(dpy, XtWindow(top), atoms[WM_NAME], atoms[STRING], 8, PropModeReplace, (const unsigned char*)window_name, strlen(window_name)); + XChangeProperty(dpy, XtWindow(top), atoms[_NET_WM_PID], atoms[CARDINAL], 32, PropModeReplace, (const unsigned char*)&pid, 1); + XtAppMainLoop(context); return 0; -- 1.8.4.4 debian/patches/series0000644000000000000000000000003712257315264012041 0ustar 643847-window-properties.patch debian/manpages0000644000000000000000000000004412243153302010675 0ustar debian/autocutsel.1 debian/cutsel.1 debian/autocutsel.10000644000000000000000000000435712243153302011444 0ustar .TH "AUTOCUTSEL" "1" "5 December 2007" "autocutsel 0.9.0" .SH "NAME" autocutsel \- keep the X clipboard and the cutbuffer in sync .SH "SYNOPSIS" .na .B autocutsel .RB [ \-selection .IR selection_name ] .RB [ \-cutbuffer .IR number ] .RB [ \-debug ] .RB [ \-verbose ] .RB [ \-fork ] .RB [ \-pause .IR milliseconds ] .RB [ \-buttonup ] .LP .SH "DESCRIPTION" .PP This manual page documents briefly the .B autocutsel command. .PP This manual page was written for the .B Debian distribution because the original program does not have a manual page. .PP .B autocutsel tracks changes in the server's cutbuffer and clipboard selection. When the clipboard is changed, it updates the cutbuffer. When the cutbuffer is changed, it owns the clipboard selection. The cutbuffer and clipboard selection are always synchronized. Since the VNC client synchronizes the Windows' clipboard and the server's cutbuffer, all three "clipboards" are always kept synchronized. When you copy some text in Windows, the cutbuffer and the clipboard selection are updated. When you copy text on the server using either the cutbuffer or the clipboard selection, the Windows's clipboard is always updated. .SH "OPTIONS" .TP .B -selection, -select, -sel, -s {CLIPBOARD|PRIMARY} Specify which selection to use. Default is CLIPBOARD. .TP .B -cutbuffer (Details of this parameter unknown.) .TP .B -debug, -d Run with debugging mode. .TP .B -verbose, -v Be more verbose. Reports the version and announces synchronizations. .TP .B -fork, -f Run as a daemon program in the background. This is recommended when used from an X startup script. .TP .B -pause, -p Wait some milliseconds before owning the selection. .TP .B -buttonup Get the selection only when the button 1 is not pressed. This may help with OpenOffice Writer. .SH "AUTHOR" .PP This manual page was written by Elmar S. Heeb for the .B Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. .PP On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. debian/docs0000644000000000000000000000002112243153302010025 0ustar NEWS README TODO debian/rules0000755000000000000000000000020212257316536010252 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with=autoreconf debian/dirs0000644000000000000000000000001012243153302010034 0ustar usr/bin debian/control0000644000000000000000000000237312243415476010606 0ustar Source: autocutsel Section: x11 Priority: optional Maintainer: Elmar S. Heeb Uploaders: Axel Beckert Build-Depends: dh-autoreconf, debhelper (>= 9), dpkg-dev (>= 1.16.1~), libxaw7-dev Standards-Version: 3.9.5 Homepage: http://www.nongnu.org/autocutsel/ VCS-Git: git://github.com/elmar/autocutsel-debian.git VCS-Browser: https://github.com/elmar/autocutsel-debian Package: autocutsel Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Enhances: emacsen, vnc-viewer Description: Keep the X clipboard and the cutbuffer in sync This tracks changes in the server's cutbuffer and clipboard selection. when the clipboard is changed, it updates the cutbuffer. When the cutbuffer is changed, it owns the clipboard selection. The cutbuffer and clipboard selection are always synchronized. In the case of a VNC client since it synchronizes the Windows' clipboard and the server's cutbuffer, all three "clipboards" are always kept synchronized. When you copy some text in Windows, the cutbuffer and the clipboard selection are updated. When you copy text on the server using either the cutbuffer or the clipboard selection, the Windows's clipboard is always updated. debian/watch0000644000000000000000000000036512243410073010217 0ustar # format version number, currently 3; this line is compulsory! version=3 opts=uversionmangle=s/_/./g,filenamemangle=s/.+\/v?(\d[^\/]*)\.tar\.gz/autocutsel-$1\.tar\.gz/ \ https://github.com/sigmike/autocutsel/releases .*/v?(\d[^\/]*)\.tar\.gz debian/copyright0000644000000000000000000000224212243415352011122 0ustar This package was debianized by Elmar S. Heeb on Fri, 30 Nov 2007 15:41:20 +0100. It was downloaded from http://www.nongnu.org/autocutsel/ Upstream Author: Michael Witrant Copyright: Copyright (C) 2001-2006 Michael Witrant License: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. The Debian packaging is copyright (C) 2012, Elmar S. Heeb and is licensed under the GPL 2 or later. See `/usr/share/common-licenses/GPL-2' for the full license text. debian/cutsel.10000644000000000000000000000261312243153302010544 0ustar .TH "CUTSEL" "1" "5 December 2007" "autocutsel 0.9.0" .SH "NAME" cutsel \- show information about the X clipboard and the cutbuffer in sync .SH "SYNOPSIS" .PP .B cutsel [\-selection \fIselection_name\fP] [\-cutbuffer \fInumber\fP] [\-debug] [\-verbose] {cut|sel} .LP .SH "DESCRIPTION" .PP This manual page documents briefly the .B cutsel command. .PP This manual page was written for the .B Debian distribution because the original program does not have a manual page. .TP .B cutsel [\fIoptions\fP] cut shows the contents of the cut buffer and .TP .B cutsel [\fIoptions\fP] sel shows the owner of the selection. .SH "OPTIONS" .TP .B \-selection, \-select, \-sel, \-s {CLIPBOARD|PRIMARY} Specify which selection to use. Default is CLIPBOARD. .TP .B \-cutbuffer (Details of this parameter unknown.) .TP .B \-debug, \-d Run with debugging mode. .TP .B \-verbose, \-v Be more verbose. Reports the version and announces synchronizations. .SH "AUTHOR" .PP This manual page was written by Elmar S. Heeb for the .B Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. .PP On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL.