On Tuesday 05 November 2002 2:40 pm, Dekel Tsur wrote: > On Tue, Nov 05, 2002 at 04:28:16PM +0200, Dekel Tsur wrote: > > On Tue, Nov 05, 2002 at 04:17:28PM +0200, Dekel Tsur wrote: > > > Copying from/into LyX using he X selection mechanism doesn't work. > > > The following patch fixes that. > > > Please test that it works with QT2. > > > > > > Note that in lyxX11EventFilter(), I need a pointer to a the WorkArea > > > class, which is currently obtained using a hack. > > > What is the correct way to obtain it ? > > > > Here is a better patch: I set the WorkArea pointer in haveSelection(). > > Ignore the first two patches. > Here is the latest version of the patch.
Dekel, I can confirm that this compiles with qt2. Does it work... * In LyX, I can copy stuff into the buffer and paste it into emacs with the middle mouse button. * In emacs, I can copy stuff into the buffer and paste it into LyX using the middle mouse button. Guess that means yes. Well done. Angus