all repos — openbox @ e8f387ea481470dd69257f0e7d4644ab1270b64a

openbox fork - make it a bit more like ryudo

handle events on the right screen
Dana Jansens danakj@orodu.net
commit

e8f387ea481470dd69257f0e7d4644ab1270b64a

parent

6268e2c42adc2bca464867b5a9a2e79085e9a425

2 files changed, 2 insertions(+), 8 deletions(-)

jump to
M util/epist/epist.ccutil/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.ccutil/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: