aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seatop_default.c
diff options
context:
space:
mode:
authorLibravatar Simon Plakolb <s.plakolb@gmail.com>2021-08-24 16:53:03 +0200
committerLibravatar Tudor Brindus <vulcainus@gmail.com>2021-09-02 13:13:40 -0400
commit4baf845a3ab90ac4ae8832e9e022c8638080e743 (patch)
tree452ed400b8b772f3cb27ed6b8b868fb0804aba62 /sway/input/seatop_default.c
parentinput: Use seatop_down on layer surface click (diff)
downloadsway-4baf845a3ab90ac4ae8832e9e022c8638080e743.tar.gz
sway-4baf845a3ab90ac4ae8832e9e022c8638080e743.tar.zst
sway-4baf845a3ab90ac4ae8832e9e022c8638080e743.zip
seatop_down: End if surface is destroyed or other seatop starts
If the surface the pointer started to interact with is destroyed we also want the seatop_down to end. In case a drag is initiated we receive a call to handle_end.
Diffstat (limited to 'sway/input/seatop_default.c')
-rw-r--r--sway/input/seatop_default.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c
index 7a3745d2..4320a3b4 100644
--- a/sway/input/seatop_default.c
+++ b/sway/input/seatop_default.c
@@ -374,7 +374,7 @@ static void handle_button(struct sway_seat *seat, uint32_t time_msec,
374 transaction_commit_dirty(); 374 transaction_commit_dirty();
375 } 375 }
376 if (state == WLR_BUTTON_PRESSED) { 376 if (state == WLR_BUTTON_PRESSED) {
377 seatop_begin_down_on_layer_surface(seat, surface, time_msec, sx, sy); 377 seatop_begin_down_on_surface(seat, surface, time_msec, sx, sy);
378 } 378 }
379 seat_pointer_notify_button(seat, time_msec, button, state); 379 seat_pointer_notify_button(seat, time_msec, button, state);
380 return; 380 return;