X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=util%2Fepist%2Fepist.cc;h=bfa7989ce89462588ef83cfa02fc6412480c1cd2;hb=e8f387ea481470dd69257f0e7d4644ab1270b64a;hp=a97b1f775e6b57672cf74ee92f740bc199748cd8;hpb=f754eb0ea4de43f4d99861e4c8311f7a57b87a11;p=chaz%2Fopenbox 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; }