mirror of
https://github.com/swaywm/sway.git
synced 2025-11-16 06:59:49 -05:00
Set cursor when beginning resize and move operations
This commit is contained in:
parent
009b426024
commit
d21d4b83a3
2 changed files with 10 additions and 0 deletions
|
|
@ -215,6 +215,7 @@ static void calculate_floating_constraints(struct sway_container *con,
|
|||
*max_height = config->floating_maximum_height;
|
||||
}
|
||||
}
|
||||
|
||||
static void handle_resize_motion(struct sway_seat *seat,
|
||||
struct sway_cursor *cursor) {
|
||||
struct sway_container *con = seat->op_container;
|
||||
|
|
@ -704,6 +705,9 @@ static void handle_request_set_cursor(struct wl_listener *listener,
|
|||
void *data) {
|
||||
struct sway_cursor *cursor =
|
||||
wl_container_of(listener, cursor, request_set_cursor);
|
||||
if (cursor->seat->operation != OP_NONE) {
|
||||
return;
|
||||
}
|
||||
struct wlr_seat_pointer_request_set_cursor_event *event = data;
|
||||
|
||||
struct wl_client *focused_client = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue