diff options
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index a2f11557..7a9f3ed7 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <wlr/types/wlr_idle.h> | 10 | #include <wlr/types/wlr_idle.h> |
11 | #include "list.h" | 11 | #include "list.h" |
12 | #include "log.h" | 12 | #include "log.h" |
13 | #include "sway/desktop/transaction.h" | ||
13 | #include "sway/input/cursor.h" | 14 | #include "sway/input/cursor.h" |
14 | #include "sway/layers.h" | 15 | #include "sway/layers.h" |
15 | #include "sway/output.h" | 16 | #include "sway/output.h" |
@@ -219,6 +220,7 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec, | |||
219 | struct sway_drag_icon *drag_icon = wlr_drag_icon->data; | 220 | struct sway_drag_icon *drag_icon = wlr_drag_icon->data; |
220 | drag_icon_update_position(drag_icon); | 221 | drag_icon_update_position(drag_icon); |
221 | } | 222 | } |
223 | transaction_commit_dirty(); | ||
222 | } | 224 | } |
223 | 225 | ||
224 | static void handle_cursor_motion(struct wl_listener *listener, void *data) { | 226 | static void handle_cursor_motion(struct wl_listener *listener, void *data) { |
@@ -278,6 +280,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor, | |||
278 | 280 | ||
279 | wlr_seat_pointer_notify_button(cursor->seat->wlr_seat, | 281 | wlr_seat_pointer_notify_button(cursor->seat->wlr_seat, |
280 | time_msec, button, state); | 282 | time_msec, button, state); |
283 | transaction_commit_dirty(); | ||
281 | } | 284 | } |
282 | 285 | ||
283 | static void handle_cursor_button(struct wl_listener *listener, void *data) { | 286 | static void handle_cursor_button(struct wl_listener *listener, void *data) { |
@@ -474,7 +477,7 @@ static void handle_request_set_cursor(struct wl_listener *listener, | |||
474 | // TODO: check cursor mode | 477 | // TODO: check cursor mode |
475 | if (focused_client == NULL || | 478 | if (focused_client == NULL || |
476 | event->seat_client->client != focused_client) { | 479 | event->seat_client->client != focused_client) { |
477 | wlr_log(L_DEBUG, "denying request to set cursor from unfocused client"); | 480 | wlr_log(WLR_DEBUG, "denying request to set cursor from unfocused client"); |
478 | return; | 481 | return; |
479 | } | 482 | } |
480 | 483 | ||