]> Dogcows Code - chaz/openbox/commitdiff
use the NONE cursor when not specifying a cursor
authorDana Jansens <danakj@orodu.net>
Wed, 3 Sep 2003 20:31:50 +0000 (20:31 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 3 Sep 2003 20:31:50 +0000 (20:31 +0000)
openbox/action.c
openbox/keyboard.c
openbox/mouse.c

index b4ec216b118f64678b26dbd6c3cb32458c2767d3..fcbf683a671fce5196366c475e17766550c3ae15 100644 (file)
@@ -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)
index f8109456894def5c092f472a4388c7230bb6ae75..37bff2711a5471167220b9904fd8518831e0e314 100644 (file)
@@ -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);
index 91b98c6ac573657e15667af2fa0546b310dd25ce..ace7bca0c59aca82b172dd5b539d5398ed1bfe12 100644 (file)
@@ -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);
         }
This page took 0.02921 seconds and 4 git commands to generate.