> I figure it's not fair to starve any widget of all events.. > I hear them gasping for breath whenever I see that.. ;) > > Also, I'm not sure if it's the intention to leave Fl::grab() > in effect after the window's been hide()en, so I figure it > makes sense to call Fl::grab(0) just before the hide(). > > If I don't do this, when I hit a key to make the grab window > go away, the second window remains fairly 'dead' to all events, > probably because the Fl::grab() is still attached to the > hidden window.
Good catch ! :) I skipped Fl::grab(0) since only main window requested it and after closing application, X11 will remove grab hook (hopefully the same applies for win32/osx); for any kind of windows later opened during application lifetime it must be done or it will be dead for future events, as you stated. But... it is much nicer to remove that grab anyway (from main window) than to relay on system; sounds much more portable and safer :) -- Sanel _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

