Re: Why is xap_unixClipboard.cpp:canPaste ifdef'd out?

From: Tomeu Vizoso <tomeu_at_tomeuvizoso.net>
Date: Thu Mar 22 2007 - 13:12:32 CET

On Thu, 2007-03-22 at 08:05 -0400, Dominic Lachowicz wrote:
> A major problem is how frequently we query the clipboard to see if we
> can paste or not. IIRC, it's something like several times per second,
> which amounted to polling the clipboard.
>
> As far as I can tell, there is no good way to tell whether you can
> paste or not from a X11 clipboard. You just have to try and see what
> happens. But of course, my recollection of this is also 4.5 years old,
> so I could be talking out of my arse.

I think you could listen to owner-change on the clipboard in order to
keep track of when is something "pastable" in there.

> http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html
>
> Dom
Received on Thu Mar 22 13:12:32 2007

This archive was generated by hypermail 2.1.8 : Thu Mar 22 2007 - 13:12:32 CET