aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2019-01-30 14:09:20 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-01-30 14:09:50 -0500
commit0c975af1fb701e9a9f0018da0c2f9fdf32234029 (patch)
tree026d93cb46d691ff2a1b65b89e0973903dd747f5
parentMissed a spot in pointer constraints (diff)
downloadsway-0c975af1fb701e9a9f0018da0c2f9fdf32234029.tar.gz
sway-0c975af1fb701e9a9f0018da0c2f9fdf32234029.tar.zst
sway-0c975af1fb701e9a9f0018da0c2f9fdf32234029.zip
Send pointer frames on tool events
-rw-r--r--sway/input/cursor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 82700367..e51d3e38 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -1026,6 +1026,7 @@ static void handle_tool_axis(struct wl_listener *listener, void *data) {
1026 } 1026 }
1027 1027
1028 cursor_motion_absolute(cursor, event->time_msec, event->device, x, y); 1028 cursor_motion_absolute(cursor, event->time_msec, event->device, x, y);
1029 wlr_seat_pointer_notify_frame(cursor->seat->wlr_seat);
1029} 1030}
1030 1031
1031static void handle_tool_tip(struct wl_listener *listener, void *data) { 1032static void handle_tool_tip(struct wl_listener *listener, void *data) {
@@ -1035,6 +1036,7 @@ static void handle_tool_tip(struct wl_listener *listener, void *data) {
1035 dispatch_cursor_button(cursor, event->device, event->time_msec, 1036 dispatch_cursor_button(cursor, event->device, event->time_msec,
1036 BTN_LEFT, event->state == WLR_TABLET_TOOL_TIP_DOWN ? 1037 BTN_LEFT, event->state == WLR_TABLET_TOOL_TIP_DOWN ?
1037 WLR_BUTTON_PRESSED : WLR_BUTTON_RELEASED); 1038 WLR_BUTTON_PRESSED : WLR_BUTTON_RELEASED);
1039 wlr_seat_pointer_notify_frame(cursor->seat->wlr_seat);
1038 transaction_commit_dirty(); 1040 transaction_commit_dirty();
1039} 1041}
1040 1042
@@ -1060,6 +1062,7 @@ static void handle_tool_button(struct wl_listener *listener, void *data) {
1060 cursor->tool_buttons--; 1062 cursor->tool_buttons--;
1061 break; 1063 break;
1062 } 1064 }
1065 wlr_seat_pointer_notify_frame(cursor->seat->wlr_seat);
1063 transaction_commit_dirty(); 1066 transaction_commit_dirty();
1064} 1067}
1065 1068