From 9d35b8c19865cb12c6bfb14c9879d3dfb52c3ac5 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 3 Sep 2003 20:31:50 +0000 Subject: [PATCH] use the NONE cursor when not specifying a cursor --- openbox/action.c | 24 ++++++++++++------------ openbox/keyboard.c | 4 ++-- openbox/mouse.c | 3 ++- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/openbox/action.c b/openbox/action.c index b4ec216b..fcbf683a 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -926,9 +926,9 @@ void action_move_relative_horz(union ActionData *data) { ObClient *c = data->relative.any.c; if (c) { - grab_pointer(TRUE, None); + grab_pointer(TRUE, OB_CURSOR_NONE); client_move(c, c->area.x + data->relative.delta, c->area.y); - grab_pointer(FALSE, None); + grab_pointer(FALSE, OB_CURSOR_NONE); } } @@ -936,9 +936,9 @@ void action_move_relative_vert(union ActionData *data) { ObClient *c = data->relative.any.c; if (c) { - grab_pointer(TRUE, None); + grab_pointer(TRUE, OB_CURSOR_NONE); client_move(c, c->area.x, c->area.y + data->relative.delta); - grab_pointer(FALSE, None); + grab_pointer(FALSE, OB_CURSOR_NONE); } } @@ -946,11 +946,11 @@ void action_resize_relative_horz(union ActionData *data) { ObClient *c = data->relative.any.c; if (c) { - grab_pointer(TRUE, None); + grab_pointer(TRUE, OB_CURSOR_NONE); client_resize(c, c->area.width + data->relative.delta * c->size_inc.width, c->area.height); - grab_pointer(FALSE, None); + grab_pointer(FALSE, OB_CURSOR_NONE); } } @@ -958,10 +958,10 @@ void action_resize_relative_vert(union ActionData *data) { ObClient *c = data->relative.any.c; if (c && !c->shaded) { - grab_pointer(TRUE, None); + grab_pointer(TRUE, OB_CURSOR_NONE); client_resize(c, c->area.width, c->area.height + data->relative.delta * c->size_inc.height); - grab_pointer(FALSE, None); + grab_pointer(FALSE, OB_CURSOR_NONE); } } @@ -1166,9 +1166,9 @@ void action_movetoedge(union ActionData *data) g_assert_not_reached(); } frame_frame_gravity(c->frame, &x, &y); - grab_pointer(TRUE, None); + grab_pointer(TRUE, OB_CURSOR_NONE); client_move(c, x, y); - grab_pointer(FALSE, None); + grab_pointer(FALSE, OB_CURSOR_NONE); } @@ -1231,9 +1231,9 @@ void action_growtoedge(union ActionData *data) frame_frame_gravity(c->frame, &x, &y); width -= c->frame->size.left + c->frame->size.right; height -= c->frame->size.top + c->frame->size.bottom; - grab_pointer(TRUE, None); + grab_pointer(TRUE, OB_CURSOR_NONE); client_move_resize(c, x, y, width, height); - grab_pointer(FALSE, None); + grab_pointer(FALSE, OB_CURSOR_NONE); } void action_send_to_layer(union ActionData *data) diff --git a/openbox/keyboard.c b/openbox/keyboard.c index f8109456..37bff271 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -136,7 +136,7 @@ void keyboard_interactive_grab(guint state, ObClient *client, if (!interactive_states) { if (!grab_keyboard(TRUE)) return; - if (!grab_pointer(TRUE, None)) { + if (!grab_pointer(TRUE, OB_CURSOR_NONE)) { grab_keyboard(FALSE); return; } @@ -187,7 +187,7 @@ gboolean keyboard_process_interactive_grab(const XEvent *e, s->action->func(&s->action->data); grab_keyboard(FALSE); - grab_pointer(FALSE, None); + grab_pointer(FALSE, OB_CURSOR_NONE); keyboard_reset_chains(); g_free(s); diff --git a/openbox/mouse.c b/openbox/mouse.c index 91b98c6a..ace7bca0 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -53,7 +53,8 @@ void mouse_grab_for_client(ObClient *client, gboolean grab) } else continue; if (grab) - grab_button_full(b->button, b->state, win, mask, mode, None); + grab_button_full(b->button, b->state, win, mask, mode, + OB_CURSOR_NONE); else ungrab_button(b->button, b->state, win); } -- 2.45.2