diff options
Diffstat (limited to 'util/epist/epist.cc')
| -rw-r--r-- | util/epist/epist.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/util/epist/epist.cc b/util/epist/epist.cc index a97b1f77..bfa7989c 100644 --- a/util/epist/epist.cc +++ b/util/epist/epist.cc @@ -253,16 +253,9 @@ bool epist::handleSignal(int sig) { void epist::process_event(XEvent *e) { - Window root; - - if (e->xany.type == KeyPress) - root = e->xkey.root; - else - root = e->xany.window; - ScreenList::const_iterator it, end = _screens.end(); for (it = _screens.begin(); it != end; ++it) { - if ((*it)->rootWindow() == root) { + if ((*it)->rootWindow() == e->xany.window) { (*it)->processEvent(*e); return; } |
