Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!applix!piyush From: piyush@applix.com (Piyush Jain [ext 250]) Newsgroups: comp.windows.open-look Subject: Can't Cut-n-Paste to OpenWin apps.... Message-ID: <1115@applix.com> Date: 27 Jan 91 02:08:34 GMT Organization: APPLiX Inc., Westboro, MA Lines: 32 I'm developing an application using Xlib and need to support cut-n-paste to/from OpenWindows applications. Haven't been able to paste into OW windows yet. Here's the process I'm using (as specified in the X Protocol Ref Manual). Wonder if anyone can shed some light on this..... 1. User selects something in my aplication. I grab the XA_PRIMARY atom. 2. User indicates he wants to cut selection. I grab (XA_)CLIPBOARD. 3. User uses "Term Pane" menu to paste into OW window (say shelltool). ** A notice pops up saying that nothing is on the clipboard (why??). (which clipboard is it looking at ??) ** I then get a SelectionRequest event with the following members: selection: CLIPBOARD (of which I am the owner) property: property_type: LENGTH So I compute the number of bytes in the selection, store this information on the requested property using XChangeProperty, and send it back to the OW window using XSendEvent. ** The OW window (example: shelltool) dumps core with a signal segmentation fault (it's apparently trying to allocate a very very large chunk of memory) !!! HELP!!!! -- Piyush Jain piyush@applix.com