summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-14 22:58:35 +0000
committerDana Jansens <danakj@orodu.net>2003-01-14 22:58:35 +0000
commitb267261403b99d600c073e1252bffabee7bd45f0 (patch)
tree3d0fc5a6e2e527c16dd9f765a02e9af3c7195bcb /src
parent219e18e74466120016b849cae86c34789598773a (diff)
just return if a valid widget isnt found, racey to assert
Diffstat (limited to 'src')
-rw-r--r--src/actions.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actions.cc b/src/actions.cc
index 10edeec2..5a799a58 100644
--- a/src/actions.cc
+++ b/src/actions.cc
@@ -74,7 +74,7 @@ void Actions::buttonPressHandler(const XButtonEvent &e)
// 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 @@ void Actions::buttonReleaseHandler(const XButtonEvent &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 @@ void Actions::motionHandler(const XMotionEvent &e)
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