summaryrefslogtreecommitdiff
path: root/xclip.c
AgeCommit message (Collapse)Author
2017-11-02Fix minor spelling mistakesRené Genz
2017-10-20Fix sign-compare compiler warningsHenrik Andersson
2017-10-05Remove infrastructure to auto-generate proto.hKarl Mikaelsson
If proto.h is supposed to be auto-generated it should probably not be present in the repo at all. Re-running cproto showed that proto.h has been manually edited for quite some time, so this just makes this the only workflow. It also gets rid of a bit of #ifdefs, so that's nice.
2017-01-26Rework the logging systemHenrik Andersson
This commit will add a logging system to solve the problem that one actually need to recompile rdesktop from source to enable different debug logging. - Same logging api for all kind of logging and messages to end user. - Adding -v for verbose output when running rdesktop. - All messages are logged into a subject and with a type, eg: logger(Keyboard, Notice, "Autos-electing %s based on locale.", locale); - Debug logging is enabled trough a environment variable RDEKSTOP_DEBUG, which specifies subjects of interest, comma separated. There is a special subject named All which includes all subject for debug loggin. There is also a simple logic opeartor '!' = NOT which can be used in combination like: RDESKTOP_DEBUG=All,!Graphics,!Sound Which would give debug log output for All subject except Graphics and Sound.
2017-01-20Raise requirment for iconv to requiredHenrik Andersson
This commit changes rdesktop project to require iconv(). Part of issue #89
2016-11-17Fix double freeAlexander Zakharov
2012-01-16Run indentation script.Henrik Andersson
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1658 423420c4-83ab-492f-b58f-81f9feb106b5
2011-12-21Adds 1 to data length for including the terminating nullHenrik Andersson
character when sending clipboard data to rdp server. This fixes issue were last character is missing in a local copy then paste into server session. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1653 423420c4-83ab-492f-b58f-81f9feb106b5
2011-09-28Fixed style of a few copyright statements. Peter Åstrand
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1635 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13Include emails in copyright statements. Peter Åstrand
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1615 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13Updated the copyright notices for the things we have been working on.Peter Åstrand
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1612 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12Changed license to GPLv3Peter Åstrand
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1534 423420c4-83ab-492f-b58f-81f9feb106b5
2008-07-11update the copyright yearJay Sorg
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1474 423420c4-83ab-492f-b58f-81f9feb106b5
2007-04-25Applied patch #1700909 from Ilya Konstantinov: Linebreak (CR-LF) fixes for ↵Peter Åstrand
clipboard code git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1403 423420c4-83ab-492f-b58f-81f9feb106b5
2007-03-07check if there is any data returned from XGetWindowProperty beforeMichael Gernoth
calling xclip_send_data_with_convert. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1398 423420c4-83ab-492f-b58f-81f9feb106b5
2007-03-04Fixed segfaults in xclip.c:Michael Gernoth
[1657964] Copy causes segfault by Jos Dehaes [1664930] Segmentation fault when work with VMWare on remote Windows git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1397 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-08prefix BOOL with RD_Jay Sorg
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1371 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-04copyright year updateJay Sorg
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1364 423420c4-83ab-492f-b58f-81f9feb106b5
2006-05-15QT sets incorrect types on clipboard properties so we have to acceptPierre Ossman
everything and hope for the best. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1233 423420c4-83ab-492f-b58f-81f9feb106b5
2006-04-09Compile fixes for GCC 2.96. Fixes 1444824.Peter Åstrand
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1222 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-28Cut down own the redundant clipboard mode arguments.Pierre Ossman
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1214 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-28Make sure we notify other rdesktops that we exited so that they can updatePierre Ossman
their clipboard status. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1213 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-28New race free implementation of the rdesktop-to-rdesktop clipboard protocol.Pierre Ossman
We now use the property on the root window merely as a way of notifying other windows that something happend. The actual formats are queried directly from the current clipboard owner. The new model should be easier to extend with XFixes support. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1212 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-27Examine the magic root window property on startup so that we correctly handlePierre Ossman
when another rdesktop owns the clipboard when we start. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1211 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-27Handle when server sends a failure back for a clipboard request.Pierre Ossman
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1210 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-27Store the time when we acquired the selection so that we can correctlyPierre Ossman
report it when queried. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1209 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-27Handle when server doesn't give us any clipboard data.Pierre Ossman
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1208 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-27Reorder construction of the target list so that we do not insert an atom thatPierre Ossman
isn't yet created. Also make sure that we order targets in order of preference. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1207 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-27Control clipboard behaviour (and even disable it) using command line options.Pierre Ossman
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1206 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-27Examine timestamps of PRIMARY and CLIPBOARD to determine which is morePierre Ossman
recent and should therefore be used. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1205 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-27We requested data from CLIPBOARD even though we might be examining the targetsPierre Ossman
for PRIMARY. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1204 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-27Use the helper functions since they make sure the server end flushes itsPierre Ossman
cache. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1202 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-01incompatible pointer type warning fixes for iconv-callsMichael Gernoth
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1049 423420c4-83ab-492f-b58f-81f9feb106b5
2006-02-28Applied patch from bug #1431217: Segmentation fault in ↵Peter Åstrand
xclip_handle_SelectionNotify. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1047 423420c4-83ab-492f-b58f-81f9feb106b5
2006-01-05Indentation fixPeter Åstrand
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1037 423420c4-83ab-492f-b58f-81f9feb106b5
2006-01-02Applied patch [1] with unicode support in clipboard code from Ilya KonstantinovErik Forsberg
[1] https://sourceforge.net/tracker/?func=detail&atid=381349&aid=1394324&group_id=24366 git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1036 423420c4-83ab-492f-b58f-81f9feb106b5
2005-11-14Indent fixesPeter Åstrand
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1027 423420c4-83ab-492f-b58f-81f9feb106b5
2005-11-14Applied patch with comments from Ilya Konstantinov. Closes Patch 1354336.Erik Forsberg
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1026 423420c4-83ab-492f-b58f-81f9feb106b5
2005-11-09Applied patch from Burt Holzman <burt at fnal gov>, which fixes problems withErik Forsberg
the INCR support, used when doing clipboard operations with a lot of data. With this patch, I can copy and then paste a 32 page document from oowriter->winword. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1025 423420c4-83ab-492f-b58f-81f9feb106b5
2005-11-07Applied patch 1349027 by Ilya Konstantinov.Erik Forsberg
Generalizes code for sending clipboard format announces to RDP side, and uses new code in appropriate places. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1024 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-02Surround public functions requiring X11 headers with #ifndefPeter Åstrand
MAKE_PROTO; these are in xproto.h, which is not generated by cproto. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@941 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-02Indent fixes.Peter Åstrand
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@940 423420c4-83ab-492f-b58f-81f9feb106b5
2005-07-30Compile fix for older GCCs from Nikolai V. Ivanyushin <nvi@sven.ru>Michael Gernoth
(Move declaration of variable to start of function) git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@939 423420c4-83ab-492f-b58f-81f9feb106b5
2005-06-27fix compiler warning on Mac OS/X:Michael Gernoth
pointer targets in passing argument differ in signedness git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@913 423420c4-83ab-492f-b58f-81f9feb106b5
2005-06-27Support the clipboard INCR protocol: Applied patch from Burt Holzman.Peter Åstrand
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@912 423420c4-83ab-492f-b58f-81f9feb106b5
2004-06-04Don't advertise UTF8_STRING. Use STRING instead. This gives muchErik Forsberg
better interoperability between MS Word and Star/OpenOffice when it comes to highbit characters (åäö and friends). git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@706 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-15Indent fixesPeter Åstrand
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@607 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-07Cleanup some warnings (from SUNWspro-compiler)Michael Gernoth
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@601 423420c4-83ab-492f-b58f-81f9feb106b5
2003-12-05Translating linebreaks when exchanging data via clipboardPeter Åstrand
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@550 423420c4-83ab-492f-b58f-81f9feb106b5
2003-11-03Indent fixesPeter Åstrand
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@541 423420c4-83ab-492f-b58f-81f9feb106b5