Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph R Swick) Newsgroups: comp.windows.x Subject: Re: XCutBuffer problem/bug/wierdness Message-ID: <8903011949.AA04994@LYRE.MIT.EDU> Date: 1 Mar 89 19:49:57 GMT References: <13686@duke.cs.duke.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 15 > Somehow it > appears that the editor program is remembering what was selected from > its other window and overwriting the buffer from the graphic widget. Looks like your programs are getting confused between cut buffers and selections. The R3 Xaw Text widget can use either cut buffers or selections and by default does both, but prefers to paste the PRIMARY selection if it exists, falling back to the cut buffer only if no PRIMARY selection exists. You could specify a 'translations' resource for the Text widget to cause it to ignore selections (at least on the insert-selection operation) or you could modify your program to always use selections instead of the cut buffer. The first is easy for quick-and-dirty, the second will probably give you more satisfaction in the long run.