This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: xwinclip test 6 hacked to leave selection untouched


I have not subscribed to cygwin-xfree and I will not ...

On Thursday, November 14, 2002 at 18:50:55, Harold L Hunt II wrote:
> Hmm... I forgot that not grabbing the selection causes the
> problem that you mention below, namely, that we are no
> longer notified of further changes to the X Selection.

Dear Harold,

the event PropertyNotify with event.xproperty.atom == XA_CUT_BUFFER
is the solution (hopefully) ... give it a try!

I could not find anything about X11 selection change
detection as for MS-windows, but I have been using the event
above to detect changes and at least for the applications
(xterm/xemacs) I am using it seems to work well!  They cause
this event for the root window in case of a selection change
and so xwinclip knows that it has to grab the new content
and it does not require to grab the selection ownership!!!

> In that case, your patch won't make much of a difference, as
> there is already an earlier version of xwinclip that has
> that precise behavior. It does not make much sense to toggle
> back and forth between releasing verions that do or do not
> grab the selection.

I have no idea about the earlier version, but I think
mine is different since it is detecting changes without
grabbing ownership of the selection!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]