summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMarius Nita <marius@cs.pdx.edu>2002-08-26 19:50:45 +0000
committerMarius Nita <marius@cs.pdx.edu>2002-08-26 19:50:45 +0000
commitfa301a99952a74545a5b399f0227f91fa66c0ab3 (patch)
treef54b6e690460373b951ba2fe3ccfec6e547ea86f /util
parenta95a6bd8e81a6bcc9db8abbbb3c0c78f087733f4 (diff)
Fixed a boob mistake which was causing KeyRelease events to not be handled properly if keys were relased quickly.
Diffstat (limited to 'util')
-rw-r--r--util/epist/screen.cc21
1 files changed, 1 insertions, 20 deletions
diff --git a/util/epist/screen.cc b/util/epist/screen.cc
index edaeb8f8..7773704d 100644
--- a/util/epist/screen.cc
+++ b/util/epist/screen.cc
@@ -369,11 +369,7 @@ void screen::handleKeypress(const XEvent &e) {
}
-void screen::handleKeyrelease(const XEvent &e) {
- // we're not interested in non-modifiers
- if (!isModifier(e.xkey.keycode))
- return;
-
+void screen::handleKeyrelease(const XEvent &) {
// the only keyrelease event we care about (for now) is when we do stacked
// cycling and the modifier is released
if (_stacked_cycling && _cycling && nothingIsPressed()) {
@@ -798,21 +794,6 @@ void screen::ungrabModifiers() const {
}
-bool screen::isModifier(const KeyCode kc) const {
- KeySym ks = XKeycodeToKeysym(_epist->getXDisplay(), kc, 0);
-
- if (ks == XK_Shift_L || ks == XK_Shift_R ||
- ks == XK_Control_L || ks == XK_Control_R ||
- ks == XK_Meta_L || ks == XK_Meta_R ||
- ks == XK_Alt_L || ks == XK_Alt_R ||
- ks == XK_Super_L || ks == XK_Super_R ||
- ks == XK_Hyper_L || ks == XK_Hyper_R)
- return true;
- else
- return false;
-}
-
-
bool screen::nothingIsPressed(void) const
{
char keys[32];