all repos — openbox @ 9e3d680cf74f575ebe50d25588154a4f2f9550e9

openbox fork - make it a bit more like ryudo

dont grab client context stuff on desktop windows. check that clint is non-null
Dana Jansens danakj@orodu.net
commit

9e3d680cf74f575ebe50d25588154a4f2f9550e9

parent

6375df675f01dd1a9bc625e95d799b9cb40bcda3

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

jump to
M openbox/mouse.copenbox/mouse.c

@@ -17,9 +17,9 @@ guint button;

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];