aboutsummaryrefslogtreecommitdiff
path: root/sway/input
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-09-11 16:56:05 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-09-11 16:56:05 +1000
commitd4e80cf301d77f69370cc81657c433990986cfa6 (patch)
tree189c14237b1ce6f24af40d3e8bbc3e776e5f19c6 /sway/input
parent822b45f4836c9a22af5a283e2aea6e4ecd514c22 (diff)
downloadsway-d4e80cf301d77f69370cc81657c433990986cfa6.tar.xz
Rename OP_MOVE to OP_MOVE_FLOATING
In preparation for introducing OP_MOVE_TILING.
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/cursor.c8
-rw-r--r--sway/input/seat.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 69a019bb..cd87e976 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -218,7 +218,7 @@ static void handle_down_motion(struct sway_seat *seat,
seat->op_moved = true;
}
-static void handle_move_motion(struct sway_seat *seat,
+static void handle_move_floating_motion(struct sway_seat *seat,
struct sway_cursor *cursor) {
struct sway_container *con = seat->op_container;
desktop_damage_whole_container(con);
@@ -402,8 +402,8 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
case OP_DOWN:
handle_down_motion(seat, cursor, time_msec);
break;
- case OP_MOVE:
- handle_move_motion(seat, cursor);
+ case OP_MOVE_FLOATING:
+ handle_move_floating_motion(seat, cursor);
break;
case OP_RESIZE_FLOATING:
handle_resize_floating_motion(seat, cursor);
@@ -719,7 +719,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
while (cont->parent) {
cont = cont->parent;
}
- seat_begin_move(seat, cont, button);
+ seat_begin_move_floating(seat, cont, button);
return;
}
}
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 5709a7f7..a908560a 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -963,13 +963,13 @@ void seat_begin_down(struct sway_seat *seat, struct sway_container *con,
seat->op_moved = false;
}
-void seat_begin_move(struct sway_seat *seat, struct sway_container *con,
- uint32_t button) {
+void seat_begin_move_floating(struct sway_seat *seat,
+ struct sway_container *con, uint32_t button) {
if (!seat->cursor) {
wlr_log(WLR_DEBUG, "Ignoring move request due to no cursor device");
return;
}
- seat->operation = OP_MOVE;
+ seat->operation = OP_MOVE_FLOATING;
seat->op_container = con;
seat->op_button = button;
cursor_set_image(seat->cursor, "grab", NULL);
@@ -1017,7 +1017,7 @@ void seat_begin_resize_tiling(struct sway_seat *seat,
void seat_end_mouse_operation(struct sway_seat *seat) {
enum sway_seat_operation operation = seat->operation;
- if (seat->operation == OP_MOVE) {
+ if (seat->operation == OP_MOVE_FLOATING) {
// We "move" the container to its own location so it discovers its
// output again.
struct sway_container *con = seat->op_container;