// run the PRESS python hook
WidgetBase *w = dynamic_cast<WidgetBase*>
(openbox->findHandler(e.window));
- assert(w); // everything should be a widget
+ if (!w) return;
// kill off the Button1Mask etc, only want the modifiers
unsigned int state = e.state & (ControlMask | ShiftMask | Mod1Mask |
WidgetBase *w = dynamic_cast<WidgetBase*>
(openbox->findHandler(e.window));
- assert(w); // everything should be a widget
+ if (!w) return;
// not for the button we're watching?
if (_button != e.button) return;
WidgetBase *w = dynamic_cast<WidgetBase*>
(openbox->findHandler(e.window));
- assert(w); // everything should be a widget
+ if (!w) return;
// run the MOTION python hook
// kill off the Button1Mask etc, only want the modifiers