On 11/5/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote:

Ujjal Bose wrote:

> I was having problem with cut-paste selections from X <-----> Windows
> for gvim (6.2) , and this is the reply I got from the RealVNC team .
> So is there a way to solve this in gvim ?
>
> Thanks in advance !
>
> -Ujjal
>
> ---------- Forwarded message ----------
> From: James Weatherall <[EMAIL PROTECTED]>
> Date: Nov 3, 2006 9:59 PM
> Subject: RE: Xvnc cut paste problem
> To: Ujjal Bose <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>
> Hi Ujjal,
>
> It sounds like gvim doesn't set the timestamp on the X selection correctly
> when it sets it, so vncconfig doesn't think it's changed.  Selecting text in
> another X application, then selecting the desired text in gvim should cause
> vncconfig to see the selection ownership change and to then send the gvim
> text to the viewer.
>
> Cheers,
>
> Wez @ RealVNC Ltd.

This is a known problem that nobody has found a solution for yet.  The
"Time" type is some special kind of timestamp.  I don't even know how to
get the timestamp for "now".  That's why CurrentTime is used.  Getting
the timestamp from an event (e.g. a mouse click) is not always possible
(e.g., in an xterm we don't get it) and certainly difficult to pass all
the way from the input to the selection.

Problem with Xvnc is that they stick to the specification instead of
to what applications do in practice.

Bram,

I know how to fill the correct non-0 time in own_selection()
for xterm clipbpard and for Xt gui (we need to generate dummy
self-NotifyEvent to get timestamp). I did not know how to do it for gtk,
but looks like Brett have the solution for gtk.

What do you say about adding option xcliptime with values
0=>use 0L timestamp, 1=>fill non-0 timestamp ? It might be even
possible to auto-guess whether server  supports 0L timestamp in
OwnSelection (can be xcliptime==2).

Yakov

Reply via email to