aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/input/cursor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 7a9f3ed7..c76c20b3 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -220,7 +220,6 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
220 struct sway_drag_icon *drag_icon = wlr_drag_icon->data; 220 struct sway_drag_icon *drag_icon = wlr_drag_icon->data;
221 drag_icon_update_position(drag_icon); 221 drag_icon_update_position(drag_icon);
222 } 222 }
223 transaction_commit_dirty();
224} 223}
225 224
226static void handle_cursor_motion(struct wl_listener *listener, void *data) { 225static void handle_cursor_motion(struct wl_listener *listener, void *data) {
@@ -230,6 +229,7 @@ static void handle_cursor_motion(struct wl_listener *listener, void *data) {
230 wlr_cursor_move(cursor->cursor, event->device, 229 wlr_cursor_move(cursor->cursor, event->device,
231 event->delta_x, event->delta_y); 230 event->delta_x, event->delta_y);
232 cursor_send_pointer_motion(cursor, event->time_msec, true); 231 cursor_send_pointer_motion(cursor, event->time_msec, true);
232 transaction_commit_dirty();
233} 233}
234 234
235static void handle_cursor_motion_absolute( 235static void handle_cursor_motion_absolute(
@@ -240,6 +240,7 @@ static void handle_cursor_motion_absolute(
240 struct wlr_event_pointer_motion_absolute *event = data; 240 struct wlr_event_pointer_motion_absolute *event = data;
241 wlr_cursor_warp_absolute(cursor->cursor, event->device, event->x, event->y); 241 wlr_cursor_warp_absolute(cursor->cursor, event->device, event->x, event->y);
242 cursor_send_pointer_motion(cursor, event->time_msec, true); 242 cursor_send_pointer_motion(cursor, event->time_msec, true);
243 transaction_commit_dirty();
243} 244}
244 245
245void dispatch_cursor_button(struct sway_cursor *cursor, 246void dispatch_cursor_button(struct sway_cursor *cursor,
@@ -426,6 +427,7 @@ static void handle_tool_axis(struct wl_listener *listener, void *data) {
426 427
427 wlr_cursor_warp_absolute(cursor->cursor, event->device, x, y); 428 wlr_cursor_warp_absolute(cursor->cursor, event->device, x, y);
428 cursor_send_pointer_motion(cursor, event->time_msec, true); 429 cursor_send_pointer_motion(cursor, event->time_msec, true);
430 transaction_commit_dirty();
429} 431}
430 432
431static void handle_tool_tip(struct wl_listener *listener, void *data) { 433static void handle_tool_tip(struct wl_listener *listener, void *data) {