On Monday 01 October 2001 05:37, Allan Rae wrote: > > What happens if, having moved the window, you then move the cursor over the > > pixmap? It should be destroyed bacause I have set up a prehandler to > > destroySplash on the third FL_DRAW request. > > Nothing happens. I also just noticed that the scrollbar and status bar > are occasionally missing -- they just don't get drawn at all and I see a > plain background where there should be 3d effects and buttons etc. > > Actually, the banner is only erased if the mouse cursor is positioned such > that when the LyX window appears it is over the banner. Funnily enough I > haven't had a problem with scrollbar/status-bar rendering when I leave the > mouse over the banner on startup. > > > What happens if you comment out line 144 > > fl_set_object_prehandler(obj, C_WorkAreaSplashPH); > > Doesn't seem to make much if any difference at all. > > Hmmm... Watching as best as my slow-response eyes can, it appears that > the banner is drawn _after_ the scrollbar and status bar and then the > scrollbar and status bar are erased (irrespective of above line of code). > > > I did this because I couldn't resize the window and keep the version string > > in the right place relative to the pixmap, so opted to destroy the splash. > > > > If you can shed any light on how to resize properly, that'd be good. > > I'm not resizing just moving the window. I'm using WindowMaker 0.65.1 > > If I rotate through the open windows on the desktop when I get back to LyX > the banner is removed. The scrollbar and status bar are both correctly > rendered. > > Hmmm... I just tried resizing and now I see other weird stuff happening: > When I resize the main lyx window the whole workarea + scrollbar + status > bar are _not_ redrawn although the banner is usually removed -- that is, > the LyX window is bigger but the new area covered by the window is not > drawn and is still whatever was behind the LyX window. The toolbar is > refreshed partially such that if I resize horizontally by stretching the > left hand side of the lyx window I can get what looks like two copies of > the toolbar since the original buttons are not erased. This happens even > if I try it in just one of my physical screens. > > Allan. (ARRae)
Now, correct me if I'm wrong, but it seems to me that the problem lies with the event handler that we use for the main display. We've had similar problems with the scrollbar for a long, long time. I've read in the pasat that this occurs because the event handler that the main LyX window uses is 'incorrect" in some xforms sense. I know not what I'm talking about really;just regurgitating old memories. If this is so, then the fix is to handle the main window's events in an xforms-correct way. Angus