|
From: Dave D. <dde...@es...> - 2006-07-19 18:04:24
|
Daniel J Sebald <dan...@ie...> writes: > Dave Denholm wrote: > >> If someone can summarise the problem, and simple steps to reproduce, I >> can try to find some time to investigate. (Ideally, the steps would >> not require KDE or gnome or such, since I generally just use fvwm.) > > Problem: Using the center mouse button doesn't always transfer a plot. > > Patch: Attached > > Method: > 1) Apply patch. didn't bother with this bit - see below. > 2) Goto demo directory after compile. > 3) Load 'image.dem'. I actually used all.dem > 4) After every plot, use center mouse button to transfer image to some other app. > > I find in OpenWriter that I often see the message printed out but no Pixmap showing up. > I can reproduce using open office - step through all.dem, and try to paste each into an ooffice document. Sometimes it doesn't paste. I connected both gnuplot and ooffice through xmon to an X server (actually, a cygwin X server - I am reduced these days to using a windows box as an X server, with all useful work done on a remote linux box.) So I can watch all the requests and events that both sides are making. What I saw was that ooffice asked for the PIXMAP, and gnuplot appeared to reply correctly. But the times when the paste failed, I saw that ooffice was making no attempt to do a GetImage on the pixmap. So it seems to be a problem at that end, not at gnuplot's end. But of course that still doesn't explain why the extra XFlush at the gnuplot end should change the behaviour. Incidentally, ISTR someone mentioning that you should be able to repeatedly paste the same image. It seems that ooffice explicitly steals selection ownership after the paste. But maybe that's just the way I was doing things. So you can only paste into ooffice once. I can try abiword - there doesn't seem to be a debian package around for OpenWriter ? - Ah - it's part of gnome-office ? Oh - on the speculation that the pixmap was somehow not ready when the client tried to read it... IIRC, there is only one pixmap in use : gnuplot_x11 renders the plot to that pixmap, and then sets it as the background pixmap for the window. So if you can see the plot on screen, the pixmap is ready. But as always, things may have changed, since it's a long time since I've been actively involved. dd -- Dave Denholm <dde...@es...> http://www.esmertec.com |