diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-20 15:50:12 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-20 15:50:12 +0000 |
| commit | 9e3d680cf74f575ebe50d25588154a4f2f9550e9 (patch) | |
| tree | a62658a287df80887ae908727f4bc5408e1c0ae4 /openbox/mouse.c | |
| parent | 6375df675f01dd1a9bc625e95d799b9cb40bcda3 (diff) | |
dont grab client context stuff on desktop windows. check that clint is non-null
Diffstat (limited to 'openbox/mouse.c')
| -rw-r--r-- | openbox/mouse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/mouse.c b/openbox/mouse.c index 93d00784..82b124af 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -17,9 +17,9 @@ typedef struct { GSList *actions[OB_MOUSE_NUM_ACTIONS]; /* lists of Action pointers */ } ObMouseBinding; -#define CLIENT_CONTEXT(co, cl) (co == OB_FRAME_CONTEXT_CLIENT || \ - (co == OB_FRAME_CONTEXT_ROOT && \ - cl->type == OB_CLIENT_TYPE_DESKTOP)) +#define CLIENT_CONTEXT(co, cl) ((cl && cl->type == OB_CLIENT_TYPE_DESKTOP) ? \ + co == OB_FRAME_CONTEXT_ROOT : \ + co == OB_FRAME_CONTEXT_CLIENT) /* Array of GSList*s of PointerBinding*s. */ static GSList *bound_contexts[OB_FRAME_NUM_CONTEXTS]; |
