+ // find the area of the window
+ XWindowAttributes attr;
+ if (!XGetWindowAttributes(otk::OBDisplay::display, e.window, &attr)) return;
+
+ // if not on the window any more, it isnt a CLICK
+ if (!(e.same_screen && e.x >= 0 && e.y >= 0 &&
+ e.x < attr.width && e.y < attr.height))
+ return;
+
+ // run the CLICK python hook
+ unsigned int state = e.state & (ControlMask | ShiftMask | Mod1Mask |
+ Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask);
+ ButtonData *data = new_button_data(e.window, e.time, state, e.button,
+ w->mcontext(), MouseClick);
+ Openbox::instance->bindings()->fire(data);
+
+
+ if (e.time - _release.time < DOUBLECLICKDELAY &&
+ _release.win == e.window && _release.button == e.button) {