diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-09-11 16:56:05 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-09-11 16:56:05 +1000 |
commit | d4e80cf301d77f69370cc81657c433990986cfa6 (patch) | |
tree | 189c14237b1ce6f24af40d3e8bbc3e776e5f19c6 /sway/input/cursor.c | |
parent | Merge pull request #2617 from wmww/cursor-enter-on-focus-change (diff) | |
download | sway-d4e80cf301d77f69370cc81657c433990986cfa6.tar.gz sway-d4e80cf301d77f69370cc81657c433990986cfa6.tar.zst sway-d4e80cf301d77f69370cc81657c433990986cfa6.zip |
Rename OP_MOVE to OP_MOVE_FLOATING
In preparation for introducing OP_MOVE_TILING.
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 8 |
1 files changed, 4 insertions, 4 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, | |||
218 | seat->op_moved = true; | 218 | seat->op_moved = true; |
219 | } | 219 | } |
220 | 220 | ||
221 | static void handle_move_motion(struct sway_seat *seat, | 221 | static void handle_move_floating_motion(struct sway_seat *seat, |
222 | struct sway_cursor *cursor) { | 222 | struct sway_cursor *cursor) { |
223 | struct sway_container *con = seat->op_container; | 223 | struct sway_container *con = seat->op_container; |
224 | desktop_damage_whole_container(con); | 224 | desktop_damage_whole_container(con); |
@@ -402,8 +402,8 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec, | |||
402 | case OP_DOWN: | 402 | case OP_DOWN: |
403 | handle_down_motion(seat, cursor, time_msec); | 403 | handle_down_motion(seat, cursor, time_msec); |
404 | break; | 404 | break; |
405 | case OP_MOVE: | 405 | case OP_MOVE_FLOATING: |
406 | handle_move_motion(seat, cursor); | 406 | handle_move_floating_motion(seat, cursor); |
407 | break; | 407 | break; |
408 | case OP_RESIZE_FLOATING: | 408 | case OP_RESIZE_FLOATING: |
409 | handle_resize_floating_motion(seat, cursor); | 409 | handle_resize_floating_motion(seat, cursor); |
@@ -719,7 +719,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor, | |||
719 | while (cont->parent) { | 719 | while (cont->parent) { |
720 | cont = cont->parent; | 720 | cont = cont->parent; |
721 | } | 721 | } |
722 | seat_begin_move(seat, cont, button); | 722 | seat_begin_move_floating(seat, cont, button); |
723 | return; | 723 | return; |
724 | } | 724 | } |
725 | } | 725 | } |