> What I was try to get at was whether the window has ever been shown
> before the call to grab() or not...
>
> e.g.
>       win.show();
>       Fl::grab(&win);
>
> might conceivably be different to:
>
>       Fl::grab(&win);
>       win.show();

  Oh, they're different all right. On my system the second form
  crashes the program.  Try it.

> Basically it means your app has to have at least one window shown to
> make sure that the WM will send you events and such properly. In your
> case, where you try and grab() before you have a window shown, it all
> goes a bit pear-shaped...
>

  The example I posted is a (possibly feeble) attempt to
  show the situation in its simplest form.  The way I actually
  ran into it was by putting up a subwindow and doing a grab()
  so that the subwindow could be dismissed by clicking outside it.
  I noticed that there was no keyboard navigation inside the subwindow.

  I'm trying to determine if that's expected or if I'm mishandling
  things.

As always, thanks
Stan

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to