On Mon, Jul 30, 2001 at 04:14:17PM +0100, Angus Leeming wrote:

> As I read it, fl_check_forms() passes XEvents to WorkArea through 
> C_WorkArea_work_area_handler. In which case, there is little or nothing that 
> we can do about this particular problem as it's all internal to xforms and X.

so it seems :(

xforms is returning a dud pointer to us...

> Incidentally, shouldn't the GUIRunTime routine be re-written as
> 
> void GUIRunTime::runTime()
> {
>       while (!finished) {
>               if (fl_check_forms() == FL_EVENT) {
>                       lyxerr << "LyX: This shouldn't happen..." << endl;
>                       XEvent ev;
>                       fl_XNextEvent(&ev);
>               }
>       }
> }

if you want :)

more important is :

lyxerr << "Type: 0x" << std::hex << ev.xany.type <<
       "Target: 0x" << std::hex << ev.xany.window << endl;

so we can work out where the shouldn't happen messages are coming from. I had
a reproducable one, but I've forgotten it :P

john
-- 
"I'd rather be rudely informed than politely left in the dark."

Reply via email to