piyush@applix.com (Piyush Jain [ext 250]) (01/27/91)
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: <some property name> 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