From e8f387ea481470dd69257f0e7d4644ab1270b64a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 22 Jul 2002 08:38:51 +0000 Subject: handle events on the right screen --- util/epist/epist.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'util/epist/epist.cc') 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; } -- cgit v1.2.3