aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorAlex Maese <memaese@hotmail.com>2019-04-25 11:35:18 -0500
committerSimon Ser <contact@emersion.fr>2019-04-28 21:07:47 +0300
commit5b454ac441a5ec35d6370bb6391b0f8f2f4c58aa (patch)
treed76b87dc0655dcaaeef4881f0ae2f70ab0ae5889 /sway
parent866a19b74324556815548132d209cf763c9753f5 (diff)
Don't send pointer motion when rebasing the cursor
Diffstat (limited to 'sway')
-rw-r--r--sway/input/seatop_default.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c
index 9aa4ab1f..3609fbee 100644
--- a/sway/input/seatop_default.c
+++ b/sway/input/seatop_default.c
@@ -193,11 +193,9 @@ static void cursor_do_rebase(struct sway_cursor *cursor, uint32_t time_msec,
struct sway_node *node, struct wlr_surface *surface,
double sx, double sy) {
struct wlr_seat *wlr_seat = cursor->seat->wlr_seat;
- // Handle cursor image
if (surface) {
if (seat_is_input_allowed(cursor->seat, surface)) {
wlr_seat_pointer_notify_enter(wlr_seat, surface, sx, sy);
- wlr_seat_pointer_notify_motion(wlr_seat, time_msec, sx, sy);
}
} else if (node && node->type == N_CONTAINER) {
// Try a node's resize edge
@@ -462,6 +460,9 @@ static void handle_motion(struct sway_seat *seat, uint32_t time_msec,
}
cursor_do_rebase(cursor, time_msec, node, surface, sx, sy);
+ if (surface && seat_is_input_allowed(cursor->seat, surface)) {
+ wlr_seat_pointer_notify_motion(wlr_seat, time_msec, sx, sy);
+ }
struct sway_drag_icon *drag_icon;
wl_list_for_each(drag_icon, &root->drag_icons, link) {