]> Dogcows Code - chaz/openbox/blobdiff - util/epist/epist.cc
handle events on the right screen
[chaz/openbox] / util / epist / epist.cc
index a97b1f775e6b57672cf74ee92f740bc199748cd8..bfa7989ce89462588ef83cfa02fc6412480c1cd2 100644 (file)
@@ -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;
     }
This page took 0.022579 seconds and 4 git commands to generate.