diff options
author | Ed Martin <edman007@edman007.com> | 2013-08-02 06:46:45 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2013-08-02 06:46:45 (GMT) |
commit | 58e09b719077605efadac9b712acb8f5e752f732 (patch) | |
tree | 1f4828c990b9d43afcf88283e9b2d3218300afa6 /src/Keys.cc | |
parent | 3ad6e299f6156d97b91de30f374c2bbdad433f42 (diff) | |
download | fluxbox-58e09b719077605efadac9b712acb8f5e752f732.zip fluxbox-58e09b719077605efadac9b712acb8f5e752f732.tar.bz2 |
Fix lost keypresses after workspace change (#1067)
Do not Ungrab the keyboard for a KeyPress event, this causes us to lose the
KeyRelease event which is needed to ungrab the keyboard after the event
happened.
Diffstat (limited to 'src/Keys.cc')
-rw-r--r-- | src/Keys.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/Keys.cc b/src/Keys.cc index 388ec52..ad5dca0 100644 --- a/src/Keys.cc +++ b/src/Keys.cc | |||
@@ -581,11 +581,6 @@ bool Keys::doAction(int type, unsigned int mods, unsigned int key, | |||
581 | return false; | 581 | return false; |
582 | } | 582 | } |
583 | 583 | ||
584 | // if focus changes, windows will get NotifyWhileGrabbed, | ||
585 | // which they tend to ignore | ||
586 | if (type == KeyPress) | ||
587 | XUngrabKeyboard(Fluxbox::instance()->display(), CurrentTime); | ||
588 | |||
589 | WinClient *old = WindowCmd<void>::client(); | 584 | WinClient *old = WindowCmd<void>::client(); |
590 | WindowCmd<void>::setClient(current); | 585 | WindowCmd<void>::setClient(current); |
591 | temp_key->m_command->execute(); | 586 | temp_key->m_command->execute(); |