diff options
author | Thomas Hebb <tommyhebb@gmail.com> | 2020-05-20 21:20:19 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-06-05 17:24:23 +0200 |
commit | 84ec8f92a69feb303e0e521f482b75b2cd12c4aa (patch) | |
tree | 5ae6506ea226bf1e256598f08ca77caf4dfc2d95 /sway/input/seatop_move_tiling.c | |
parent | Save transform during transaction (diff) | |
download | sway-84ec8f92a69feb303e0e521f482b75b2cd12c4aa.tar.gz sway-84ec8f92a69feb303e0e521f482b75b2cd12c4aa.tar.zst sway-84ec8f92a69feb303e0e521f482b75b2cd12c4aa.zip |
Use new wlroots API for clearing keyboard/pointer focus during grabs
We are not allowed to do what we did in #5222 and pass a `NULL` surface
wlr_seat_pointer_notify_enter(), and it's causing crashes when an
xdg-shell popup is active (see #5294 and swaywm/wlroots#2161).
Instead, solve #5220 using the new wlroots API introduced in
swaywm/wlroots#2217.
Diffstat (limited to 'sway/input/seatop_move_tiling.c')
-rw-r--r-- | sway/input/seatop_move_tiling.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/seatop_move_tiling.c b/sway/input/seatop_move_tiling.c index 3f31e4b1..a1aa5245 100644 --- a/sway/input/seatop_move_tiling.c +++ b/sway/input/seatop_move_tiling.c | |||
@@ -336,7 +336,7 @@ void seatop_begin_move_tiling_threshold(struct sway_seat *seat, | |||
336 | seat->seatop_data = e; | 336 | seat->seatop_data = e; |
337 | 337 | ||
338 | container_raise_floating(con); | 338 | container_raise_floating(con); |
339 | wlr_seat_pointer_clear_focus(seat->wlr_seat); | 339 | wlr_seat_pointer_notify_clear_focus(seat->wlr_seat); |
340 | } | 340 | } |
341 | 341 | ||
342 | void seatop_begin_move_tiling(struct sway_seat *seat, | 342 | void seatop_begin_move_tiling(struct sway_seat *seat, |