summaryrefslogtreecommitdiff
path: root/openbox/action.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-13 23:30:52 +0000
committerDana Jansens <danakj@orodu.net>2007-05-13 23:30:52 +0000
commit9fcb2aa1d25ec9889b45d145939fb17160b1106a (patch)
treeb8ca781c16f637cf12cce61cd4aa7b38b9e1b9e9 /openbox/action.c
parent627125a6c6e6728de98aa813e353ec75bab7b54c (diff)
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
Diffstat (limited to 'openbox/action.c')
-rw-r--r--openbox/action.c4
1 files changed, 2 insertions, 2 deletions
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;