diff options
author | root <root@rshg054.dnsready.net> | 2012-04-13 00:01:45 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-04-13 00:01:45 +0000 |
commit | 7ff5465d0386f06bea97ef956397c305d6f7e07f (patch) | |
tree | 0665c968d614fda52d83b1a052766ea1d063e20f /community/pwsafe/pwsafe-XChangeProperty.patch | |
parent | d6dda60d85c9d4e616982b114b3c243f1faa9d79 (diff) |
Fri Apr 13 00:01:45 UTC 2012
Diffstat (limited to 'community/pwsafe/pwsafe-XChangeProperty.patch')
-rw-r--r-- | community/pwsafe/pwsafe-XChangeProperty.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/community/pwsafe/pwsafe-XChangeProperty.patch b/community/pwsafe/pwsafe-XChangeProperty.patch new file mode 100644 index 000000000..6758a573d --- /dev/null +++ b/community/pwsafe/pwsafe-XChangeProperty.patch @@ -0,0 +1,20 @@ +Index: pwsafe.cpp +=================================================================== +RCS file: /cvsroot/pwsafe/pwsafe/pwsafe.cpp,v +retrieving revision 1.57 +diff -u -r1.57 pwsafe.cpp +--- pwsafe.cpp 12 Aug 2007 12:33:06 -0000 1.57 ++++ pwsafe.cpp 5 Jan 2011 22:16:43 -0000 +@@ -1820,10 +1820,10 @@ + if (xev.xselectionrequest.target == XA_TARGETS(xdisplay)) { + // tell them what we can supply + const Atom targets[] = { XA_TARGETS(xdisplay), XA_TIMESTAMP(xdisplay), XA_TEXT(xdisplay), XA_STRING }; +- XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_TARGETS(xdisplay), 32, PropModeReplace, reinterpret_cast<const unsigned char*>(&targets), sizeof(targets)/sizeof(targets[0])); ++ XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_ATOM, 32, PropModeReplace, reinterpret_cast<const unsigned char*>(&targets), sizeof(targets)/sizeof(targets[0])); + } + else if (xev.xselectionrequest.target == XA_TIMESTAMP(xdisplay)) { +- XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_TIMESTAMP(xdisplay), 32, PropModeReplace, reinterpret_cast<const unsigned char*>(×tamp), 1); ++ XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_INTEGER, 32, PropModeReplace, reinterpret_cast<const unsigned char*>(×tamp), 1); + } + else if (xev.xselectionrequest.target == XA_TEXT(xdisplay) || + xev.xselectionrequest.target == XA_STRING) { |