|
From: Daniel J S. <dan...@ie...> - 2006-07-19 20:06:45
|
Dave Denholm wrote: > 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. It doesn't. I said that it doesn't seem to fix things in the case of CVS. I may have changed something or have been mistaken. > > 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 said that. But if you go to the patch I created, you can use 'c' to select the CLIPBOARD so that CNTRL-V will paste multiple copies. The current CVS has been forced so that only once will a PIXMAP be respondible without having to do a replot. > > > 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. Um, probably not too much different. Just a guess. But thanks Dave. Sounds like we are confirming a bug... Not 4.2 critical, but somewhat important. Dan |