summaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 4e803efd..273223db 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -910,6 +910,7 @@ void seat_begin_move(struct sway_seat *seat, struct sway_container *con,
910 seat->operation = OP_MOVE; 910 seat->operation = OP_MOVE;
911 seat->op_container = con; 911 seat->op_container = con;
912 seat->op_button = button; 912 seat->op_button = button;
913 cursor_set_image(seat->cursor, "grab", NULL);
913} 914}
914 915
915void seat_begin_resize(struct sway_seat *seat, struct sway_container *con, 916void seat_begin_resize(struct sway_seat *seat, struct sway_container *con,
@@ -932,6 +933,10 @@ void seat_begin_resize(struct sway_seat *seat, struct sway_container *con,
932 seat->op_ref_con_ly = con->y; 933 seat->op_ref_con_ly = con->y;
933 seat->op_ref_width = con->width; 934 seat->op_ref_width = con->width;
934 seat->op_ref_height = con->height; 935 seat->op_ref_height = con->height;
936
937 const char *image = edge == WLR_EDGE_NONE ?
938 "se-resize" : wlr_xcursor_get_resize_name(edge);
939 cursor_set_image(seat->cursor, image, NULL);
935} 940}
936 941
937void seat_end_mouse_operation(struct sway_seat *seat) { 942void seat_end_mouse_operation(struct sway_seat *seat) {
@@ -951,6 +956,7 @@ void seat_end_mouse_operation(struct sway_seat *seat) {
951 } 956 }
952 seat->operation = OP_NONE; 957 seat->operation = OP_NONE;
953 seat->op_container = NULL; 958 seat->op_container = NULL;
959 cursor_set_image(seat->cursor, "left_ptr", NULL);
954} 960}
955 961
956void seat_pointer_notify_button(struct sway_seat *seat, uint32_t time_msec, 962void seat_pointer_notify_button(struct sway_seat *seat, uint32_t time_msec,