X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 26 Mar 2012 13:37:45 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: clipboard details Message-ID: <20120326113745.GQ2425@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4F6E588F DOT 4040709 AT towo DOT net> <20120326101506 DOT GK2425 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20120326101506.GK2425@calimero.vinschen.de> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Mar 26 12:15, Corinna Vinschen wrote: > On Mar 25 00:28, Thomas Wolff wrote: > > 2 comments about accessing the Windows clipboard: > > > > * Does the Windows clipboard maintain a timestamp? If so, it would > > be useful to propagate it to /dev/clipboard as its virtual last > > modification time. > > It doesn't. The clipboard only supports a sequence number. It > would be possible to convert that to a virtual modification timestamp, > but it's tricky. I have an idea how to do it, but I have to test it. I've just implemented a simple method to store the timestamp in the clipboard data itself. Since there's no way to modify stored data, only one timestamp is stored and then used as modification and access time. This only works within Cygwin. If you change the clipboard from outside Cygwin, the timestamps will be very likely reset because the Cygwin-specific clipboard data will be deleted, so this is not reliable. The problem is that the clipboard is window station specific and there's no way to store window station specific, persistent data somewhere else. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple