From: Gwenole B. <gb...@di...> - 2003-12-28 20:21:05
|
Hi, I have spent the day learning about X11 clipboard facilities (the ICCCM compliant way) to handle copy/paste between MacOS and X11. However, a few things worry me. 1) According to Inside Mac docs, GetScrap & PutScrap are expected to return values. However, I am confused with actual semantics of the ROM traps we patch. i.e. are they also expected to return values in the stack? 2) It seems that GetScrap gets called *several* times when you select an entry to edit, without any 'paste' action. e.g. a folder label. This brings up the problems of getting the native clipboard several times too. That may be costly to handle, especially with images. One solution may be to call XConvertSelection() with a timestamp of the last successful request for GetScrap, but I am still not convinced. 3) Currently, I am trying to be ICCCM compliant. This means for instance that copying text from MacOS won't put it in the PRIMARY selection for immediate pasting with the middle mouse button. We could change that but the default must comply with ICCCM recommendations so that we remain consistent with other programs e.g. KDE applications. I plan an extra prefs item for that: "clipprimary" or whatever name people feel better. However, I won't implement that now as I would like to first play with 'PICT' handling. Any thoughts? Thanks, Gwenole. |