]> Dogcows Code - chaz/openbox/commitdiff
continue commit 2b80e4e8ef56bb4fba614139601e750344418e5b - remove debug code, and...
authorDana Jansens <danakj@orodu.net>
Fri, 11 Jan 2008 23:33:43 +0000 (18:33 -0500)
committerDana Jansens <danakj@orodu.net>
Fri, 11 Jan 2008 23:33:43 +0000 (18:33 -0500)
openbox/event.c

index cc3ea68fe261a2cb6b7d1d5413de604f2db2357a..d2cb7567c63fbb3027da80172265ff4e7641cfba 100644 (file)
@@ -705,30 +705,9 @@ static void event_process(const XEvent *ec, gpointer data)
         /* Otherwise only process it if it was physically on an openbox
            internal window */
         else {
         /* Otherwise only process it if it was physically on an openbox
            internal window */
         else {
-            Window target, parent, root, *children;
-            unsigned int nchildren;
             ObWindow *w;
 
             ObWindow *w;
 
-            /* Find the top level ancestor of the subwindow, besides the
-               root */
-            target = e->xbutton.subwindow;
-            ob_debug("subwindow 0x%x\n", target);
-            while (XQueryTree(ob_display, target, &root, &parent, &children,
-                              &nchildren) != 0)
-            {
-                XFree(children);
-                if (parent == root) {
-                    ob_debug("parent is root\n");
-                    break;
-                }
-                target = parent;
-            }
-            ob_debug("toplevel 0x%x\n", target);
-
-            w = g_hash_table_lookup(window_map, &target);
-            ob_debug("w 0x%x\n", w);
-                
-            if ((w = g_hash_table_lookup(window_map, &target)) &&
+            if ((w = g_hash_table_lookup(window_map, &e->xbutton.subwindow)) &&
                 WINDOW_IS_INTERNAL(w))
             {
                 event_handle_user_input(client, e);
                 WINDOW_IS_INTERNAL(w))
             {
                 event_handle_user_input(client, e);
This page took 0.025437 seconds and 4 git commands to generate.