I wrote:
> Melchior FRANZ wrote:
> > Isn't. Key combinations with Alt and Meta are neither
> > processed (Alt-Tab) nor forwarded to the DE (Meta-F1). They are
> > simply dismissed, which is bad, because they are used for
> > interaction with the the desktop (Meta-F1 is supposed to switch
> > to Desktop 1 here).
>
> To my knowlege, there is no API for "forwarding" to the desktop
> environment.  The window manager is expected to grap those events on
> its own.  This is an interaction issue, I suspect.  Do the SDL test
> programs have the same behavior?

OK, here's the deal: When in fullscreen mode, SDL runs with an X11
grab on the keyboard input, so the window manager never gets a chance
to intervene.  It does normal input processing in windowed mode,
though.

Unfortunately what you want (the ability to Alt-Tab from a full screen
window in a custom video mode and get back to a desktop at normal
resolution) is going to be really hard.  Doing it right requires
window manager involvement, since it is the only client that knows
what the real desktop resolution is "supposed" to be.

I suppose we could mimick the behavior by writing our own code to
handle the unmap and focus events generated when the WM shift desktops
or applications.  But looking at the SDL source, I don't think it's
ever going to do this.  You can have resolution switching or desktop
integration, but not both.

Andy

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to