all repos — openbox @ b267261403b99d600c073e1252bffabee7bd45f0

openbox fork - make it a bit more like ryudo

just return if a valid widget isnt found, racey to assert
Dana Jansens danakj@orodu.net
commit

b267261403b99d600c073e1252bffabee7bd45f0

parent

219e18e74466120016b849cae86c34789598773a

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/actions.ccsrc/actions.cc

@@ -74,7 +74,7 @@

// 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 |

@@ -113,7 +113,7 @@ removePress(e);

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;

@@ -236,7 +236,7 @@ }

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