aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-22 23:10:06 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-22 23:10:19 +1000
commitd21d4b83a3effc56b177f5d505aedfdf2ddbbbd5 (patch)
tree5005c92ed70e19fcd9a316b9a9fad0d3ba07b6ad /sway/input/cursor.c
parentFix damage when shrinking a floating view using cursor (diff)
downloadsway-d21d4b83a3effc56b177f5d505aedfdf2ddbbbd5.tar.gz
sway-d21d4b83a3effc56b177f5d505aedfdf2ddbbbd5.tar.zst
sway-d21d4b83a3effc56b177f5d505aedfdf2ddbbbd5.zip
Set cursor when beginning resize and move operations
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index ee50dcde..771ad01d 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -215,6 +215,7 @@ static void calculate_floating_constraints(struct sway_container *con,
215 *max_height = config->floating_maximum_height; 215 *max_height = config->floating_maximum_height;
216 } 216 }
217} 217}
218
218static void handle_resize_motion(struct sway_seat *seat, 219static void handle_resize_motion(struct sway_seat *seat,
219 struct sway_cursor *cursor) { 220 struct sway_cursor *cursor) {
220 struct sway_container *con = seat->op_container; 221 struct sway_container *con = seat->op_container;
@@ -704,6 +705,9 @@ static void handle_request_set_cursor(struct wl_listener *listener,
704 void *data) { 705 void *data) {
705 struct sway_cursor *cursor = 706 struct sway_cursor *cursor =
706 wl_container_of(listener, cursor, request_set_cursor); 707 wl_container_of(listener, cursor, request_set_cursor);
708 if (cursor->seat->operation != OP_NONE) {
709 return;
710 }
707 struct wlr_seat_pointer_request_set_cursor_event *event = data; 711 struct wlr_seat_pointer_request_set_cursor_event *event = data;
708 712
709 struct wl_client *focused_client = NULL; 713 struct wl_client *focused_client = NULL;