This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
xwinclip test 6 hacked to leave selection untouched
- From: Robert Fenk <mailspam1 at robf dot de>
- To: cygwin-xfree at cygwin dot com
- Date: Thu, 14 Nov 2002 18:59:59 +0100
- Subject: xwinclip test 6 hacked to leave selection untouched
- Reply-to: cygwin-xfree at cygwin dot com
Hi,
I found it quite annoying that xwinclip-test6 was grabbing
the ownership of the selection every-time it looses it while
IMHO it should just grab it when there is a new selection in
the MS-Windows clipboard. Grabbing means the original
application is loosing it and with xterm and xemacs it means
that the selection is really lost, dehighlighted and not
available anymore.
So I did some googling how to detect clipboard changes on
MS-Windows and added the code for this to wndproc.c and
modified xevents.c to just grab the selection if a
MS-Windows clipboard change is detected which is not caused
by xwinclip itself (this part is really a hack).
The code might be helpful for those working on improved xwinclip
versions, but I do not have any intention on more hacking.
I actually have no idea about MS-Windows API and X11 so
there are probably new bugs ...
http://www.robf.de/Hacking/xwinclip-test7.tgz
Bye Robert
PS: I have not subscribed to this list so you should address
questions with a CC to me.