diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-20 14:42:21 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-20 14:42:21 +0000 |
| commit | 506b5dbf6f2624df57f09b5c7ba15098b1590cd5 (patch) | |
| tree | 3371e33ed55f1e15fd67832b8db7da4a6151f4d8 /src/actions.cc | |
| parent | 700984bd150d98a6876c117c2e1b1b3c72cffce1 (diff) | |
segfault no more on root clicks
Diffstat (limited to 'src/actions.cc')
| -rw-r--r-- | src/actions.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/actions.cc b/src/actions.cc index c13dc7f5..04b50791 100644 --- 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) |
