Discussion:
Keypresses when closing the mod_sp window?
Thomas Themel
2009-05-15 09:37:21 UTC
Permalink
Hi,

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?

ciao,
--
[*Thomas Themel*] You're A Nationalist, But I'm A Rationalist! I Disapprove
[extended contact] Of What You Say, And I'll Defend To The Death My Right To
[info provided in] Kill You For It!
[*message header*] - Anonymous on frost
Tuomo Valkonen
2009-05-18 07:53:22 UTC
Permalink
Post by Thomas Themel
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.
Loading...