handle events on the right screen
Dana Jansens danakj@orodu.net
2 files changed,
2 insertions(+),
8 deletions(-)
M
util/epist/epist.cc
→
util/epist/epist.cc
@@ -253,16 +253,9 @@ }
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; }
M
util/epist/screen.cc
→
util/epist/screen.cc
@@ -118,6 +118,7 @@
void screen::processEvent(const XEvent &e) { assert(_managed); + assert(e.xany.window == _root); switch (e.type) { case PropertyNotify: