From 9fcb2aa1d25ec9889b45d145939fb17160b1106a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 13 May 2007 23:30:52 +0000 Subject: add grab/ungrab macros so dont need to pass in 10 arguments to ungrab stuff. add a confine option to grab_pointer to confine the pointer to the screen, and use that for moveresize --- openbox/action.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/action.c') diff --git a/openbox/action.c b/openbox/action.c index 8c8064f8..cb703a66 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -42,7 +42,7 @@ inline void client_action_start(union ActionData *data) { if (config_focus_follow) if (data->any.context != OB_FRAME_CONTEXT_CLIENT && !data->any.button) - grab_pointer(TRUE, FALSE, OB_CURSOR_NONE); + grab_pointer(FALSE, FALSE, OB_CURSOR_NONE); } inline void client_action_end(union ActionData *data) @@ -50,7 +50,7 @@ inline void client_action_end(union ActionData *data) if (config_focus_follow) if (data->any.context != OB_FRAME_CONTEXT_CLIENT) { if (!data->any.button) { - grab_pointer(FALSE, FALSE, OB_CURSOR_NONE); + ungrab_pointer(); } else { ObClient *c; -- cgit v1.2.3