Tuomo Valkonen | 18 May 2009 09:53
Picon
Picon
Favicon

Re: Keypresses when closing the mod_sp window?

On 2009-05-15, Thomas Themel <ion@...> wrote:
> When closing the mod_sp window, it seems that the window that is
> underneath also gets the keypress (in my default case, META.."space")
> that I use to close the window. Is this a bug?

It will get the release event, not the press (unless the key is pressed
long enough to start repeating), and if it's a stupid app, it will act
on it.

Generally Ion ungrabs the keyboard in grabbed binding handler to avoid
problems with the keyboard being grabbed on application startup etc...
and there might have been other reasons too. This will cause subsequent
release events to "fall through". However, I'm not 100% sure that removing
this hack would help in this case without other workaround, because the
window is being hidden, and thus X should kill the grab in any case.

--

-- 
In 1995, Linux was almost a bicycle; an alternative way of live to the
Windows petrol beasts that had to be taken to the dealer for service.
By 2008, Linux has bloated into a gas-guzzler, and the cycle paths 
have been replaced with polluted motorways.


Gmane