2003-10-29	Kensuke Matsuzaki <zakki@peppermint.jp>
	* xevents.c, xwinclip.c Backport of the patch that fixes the crash
	with large text, enables non-ascii copy and paste, and adds
	-nounicodeclipboard command-line parameter.

2003-10-29	Harold L Hunt II <huntharo@msu.edu>
	* general Fix compilation warnings for printf () calls.
	* Imakefile Enable builds outside the xc/programs try (use xmkmf).
	* configure.ac, Makefile.am, AUTHORS, ChangeLog, COPYING, INSTALL,
	NEWS, README, VERSION
	New automake/autoconf build system.

2003-01-12	Jeremy Wilkins <jeb@jeremywilkins.freeserve.co.uk>
	* general Add support for -display and --display command-line
	parameters.

2003-12-29	Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
	* wndproc.c Pass NULL to PeekMessage instead of the hwnd for our
	messaging window, since this was causing some vital messages to be
	filtered out.

2003-12-29	Chris Twiner <>
	* xwinclip.c Use setjmp and longjmp to gracefully catch IO Errors
	and restart the process from the entry point. This should allow
	xwinclip to continue running when the X Server resets.

2002-06-22	Kensuke Matsuzaki <zakki@peppermint.jp>
	* xevents.c, xevents.h, xwinclip.c Add real support for
	COMPOUND_TEXT, TARGETS, and UTF8_STRING selection types. Grab
	clipboard contents in Unicode, if supported, convert to multi-byte
	character set, then stick the result into the appropriate
	target. This allows Japanese text to be transferred via
	xwinclip. Other eastern languages (Korean, Chinese, etc.) may also
	work.

2002-06-22	Harold L Hunt II <huntharo@msu.edu>
	* xwinclip.c Add a UnicodeSupport function to check if we have
	Unicode support or not. Currently this is done by just checking if
	we are on an NT-based platform or not.

2002-06-12	Harold L Hunt II <huntharo@msu.edu>
	* xwinclip.c Break this single source file into xwinclip.c,
	textconv.c, textconv.h, wndproc.c, wndproc.h, xevents.c, and
	xevents.h.
	* xwinclip.c Pause and loop to retry, after a delay, if we fail
	while opening the display.
	* xwinclip.c Remove a call to XSelectInput that was operating on
	our own window and always returning BadWindow. Apparently the
	event mask for our own window has to be changed with
	XChangeWindowAttributes. I've put a #if0'd example of using
	XChangeWindowAttributes into the file.
	* xwinclip.c Remove a call to XFlush. It doesn't seem necessary
	to flush any events in our queue before we start processing
	events. However, I may have read somewhere that we have to do
	this, so I may have to re-add this call to XFlush later.
	* xwinclip.c Create an atom for WM_DELETE_WINDOW. This will get is
	an X event when a window manager is about to kill us. However, it
	does nothing for the case where the server is told to GiveUp ().
	* xwinclip.c In CreateMessagingWindow, add a call to ShowWindow
	passing SW_HIDE and add a call to UpdateWindow. I'm not sure, but
	these may be necessary to kick off Windows event processing. On a
	strange note - the current xwinclip doesn't process any Windows
	messages.
	* xevents.c Add handling for WM_DELETE_WINDOW.

2002-06-10	Harold L Hunt II <huntharo@msu.edu>
	* xwinclip.c Use select () in ConnectionNumber(pDisplay) and
	/dev/windows instead of calling XNextEvent, which blocks until the
	next event. This has many benefits: Windows messages are now
	processed almost immediately after they come in (the old approach
	could take minutes), we can catch the X shutdown and restart
	messages rather than having XNextEvent call exit () when it sees
	that the connection has closed (we don't currently catch these
	events), and the clipboard integration code can now be rewritten
	with the assumption that we can and will see the Windows events
	when they arrive without an X event immediately preceeding them
	(which may allow us to stop stealing ownership of the X
	selection).
	* xwinclip.c Move the X event loop into new function
	FlushXEventQueue.

2001-10-23	Harold L Hunt II <huntharo@msu.edu>
	* xwinclip.c Add UNIXtoDOS () function to change \n to \r\n when
	copying text from an X client to the Windows clipboard. Call the
	function right before calling OpenClipboard ().

2001-10-22	Brian Genisio <>
	* xwinclip.c Line 327 - Pass strlen (pszGlobalData) instead of
	strlen (pszGlobalData) + 1 to XChangeProperty (). This eliminates
	the trailing ^@ when pasting to certain X applications, such as
	Emacs.

2001-10-22	Harold L Hunt II, Brian Genisio, Cygwin Project
	* xwinclip.c Add DOStoUNIX () function to change \r\n to \n when
	copying text from the Windows clipboard to an X client. Call the
	function right before calling XChangeProperty ().

2001-09-02	Harold L Hunt II <huntharo@msu.edu>
	* general Copy text selections from Windows into Cygwin/XFree86
	when requested.
	* general Copy text selections from Cygwin/XFree86 into Windows
	when requested.
