projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
700984b
)
segfault no more on root clicks
author
Dana Jansens
<danakj@orodu.net>
Fri, 20 Dec 2002 14:42:21 +0000
(14:42 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Fri, 20 Dec 2002 14:42:21 +0000
(14:42 +0000)
src/actions.cc
patch
|
blob
|
history
diff --git
a/src/actions.cc
b/src/actions.cc
index c13dc7f5de78c2df2376efc6ef0ff4887a368b62..04b507911802c9c1d84e051db3dc1d091368efdd 100644
(file)
--- a/
src/actions.cc
+++ b/
src/actions.cc
@@
-45,7
+45,9
@@
void OBActions::insertPress(const XButtonEvent &e)
a->pos.setPoint(e.x_root, e.y_root);
OBClient *c = Openbox::instance->findClient(e.window);
- a->clientarea = c->area();
+ // if it's not defined, they should have clicked on the root window, so this
+ // area would be meaningless anyways
+ if (c) a->clientarea = c->area();
}
void OBActions::removePress(const XButtonEvent &e)