Cygwin/X

Cygwin/X Home
Cygwin Home
sourceware.org

Chat (IRC)
Contributors
Development
  Change Logs
  Documentation
  To-Do List
  XWin Server
Documentation
  Contributor's Guide
  Frequently Asked Questions
  User's Guide
Donations
Features
Mailing Lists
  cygwin-xfree
  cygwin-xfree-announce
Mirror Sites
Ported Software
Related Sites
Screenshots

Cygwin/X - Development - xwinclip - Change Log

Last updated: 2003-12-02 0130 EST (Harold L Hunt II)

xwinclip binary and source code releases are available via the sources.redhat.com ftp mirror network in the pub/cygwin/xfree/devel/xwinclip/ directory. You may wish to note the desired filename in the links below, then download from your closest mirror.

1.2.0-1

Released: 2003-10-30 0147 EST
Cygwin setup.exe package: xwinclip-1.2.0-1
Changes:
  • Added a build script for creating the Cygwin package. Add a README file for /usr/X11R6/share/doc/Cygwin. Rename the package from XFree86-xwinclip to xwinclip. (Harold L Hunt II)
  • 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. (Kensuke Matsuzaki)
  • Fix compilation warnings for printf () calls. (Harold L Hunt II)
  • Imakefile - Enable builds outside the xc/programs tree (use xmkmf). (Harold L Hunt II)
  • configure.ac, Makefile.am, AUTHORS, ChangeLog, COPYING, INSTALL, NEWS, README, VERSION - New automake/autoconf build system. (Harold L Hunt II)
  • Locally, I renamed the Test08 release as 1.0.0, made a build that worked outside of the xc/programs tree and called it 1.0.1. Fixed compilation warnings and applied Kensuke's patch and called it 1.1.0. Finally, I added the automake/autoconf build system and called it 1.2.0. I will probably post these local tarballs later. (Harold L Hunt II)

Test08

Released: 2003-01-12 2032 EST
Cygwin setup.exe package: XFree86-xwinclip-4.2.0-8
Download binary: xwinclip-Test08.exe.bz2 (10 KiB)
Download source: xwinclip-20030112-2032.tar.bz2 (10 KiB)
Changes:
  • Add support for ``-display'' and ``--display'' command-line parameters. (Jeremy Wilkins)

Test07

Released: 2002-12-29 2344 EST
Cygwin setup.exe package: XFree86-xwinclip-4.2.0-7
Download binary: xwinclip-Test07.exe.bz2 (6 KiB)
Download source: xwinclip-20021229-2344.tar.bz2 (17 KiB)
Changes:
  • 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. (Benjamin Riefenstahl)
  • 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. (Chris Twiner)

Test06

Released: 2002-06-22 0007 EDT
Download binary: xwinclip-Test06.exe.bz2 (6 KiB)
Download source: xwinclip-20020622-0007.tar.bz2 (10 KiB)
Changes:
  • 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. (Matsuzaki Kensuke)
  • 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. (Harold L Hunt II)

Test05

Released: 2002-06-12 1316 EDT
Download binary: xwinclip-Test05.exe.bz2 (4 KiB)
Download source: xwinclip-20020612-1316.tar.bz2 (8 KiB)
Changes:
  • xwinclip.c - Break this single source file into xwinclip.c, textconv.c, textconv.h, wndproc.c, wndproc.h, xevents.c, and xevents.h. (Harold L Hunt II)
  • xwinclip.c - Pause and loop to retry, after a delay, if we fail while opening the display. (Harold L Hunt II)
  • 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. (Harold L Hunt II)
  • 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. (Harold L Hunt II)
  • 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 (). (Harold L Hunt II)
  • 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. (Harold L Hunt II)
  • xevents.c - Add handling for WM_DELETE_WINDOW. (Harold L Hunt II)

Test04

Released: 2002-06-10 2055 EDT
Download binary: xwinclip-Test04.exe.bz2 (4 KiB)
Download source: xwinclip-20020610-2055.tar.bz2 (6 KiB)
Changes:
  • 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). (Harold L Hunt II)

    Here is a description of using select instead of XNextEvent.

    Here are two examples of how to use select instead of XNextEvent:

  • xwinclip.c - Move the X event loop into new function FlushXEventQueue. (Harold L Hunt II)

Test03

Released: 2001-10-23 1000 EDT
Download binary: xwinclip-Test03.exe.bz2 (4 KiB)
Download source: xwinclip-20011023-1000.tar.bz2 (5 KiB)
Changes:
  • 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 (). (Harold L Hunt II)

Test02

Released: 2001-10-22 1832 EDT
Download binary: xwinclip-Test02.exe.bz2 (4 KiB)
Download source: xwinclip-20011022-1832.tar.bz2 (5 KiB)
Changes:
  • 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. (Brian Genisio)
  • 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 (). (Harold L Hunt II, Brian Genisio, Cygwin)

Test01

Released: 2001-09-02 1252 EDT
Download binary: xwinclip-Test01.exe.bz2 (9 KiB)
Download source: xwinclip-20010902-1252.tar.bz2 (5 KiB)
Changes:
  • Copy text selections from Windows into Cygwin/X when requested.
  • Copy text selections from Cygwin/X into Windows when requested.
Valid XHTML 1.0! Valid CSS!