aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config/output.c
diff options
context:
space:
mode:
authorLibravatar Thomas Hebb <tommyhebb@gmail.com>2020-05-20 21:20:19 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2020-06-05 17:24:23 +0200
commit84ec8f92a69feb303e0e521f482b75b2cd12c4aa (patch)
tree5ae6506ea226bf1e256598f08ca77caf4dfc2d95 /sway/config/output.c
parentSave transform during transaction (diff)
downloadsway-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/config/output.c')
-rw-r--r--sway/config/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index 5aaa4d93..713cd219 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -645,7 +645,7 @@ void apply_output_config_to_outputs(struct output_config *oc) {
645 645
646 struct sway_seat *seat; 646 struct sway_seat *seat;
647 wl_list_for_each(seat, &server.input->seats, link) { 647 wl_list_for_each(seat, &server.input->seats, link) {
648 wlr_seat_pointer_clear_focus(seat->wlr_seat); 648 wlr_seat_pointer_notify_clear_focus(seat->wlr_seat);
649 cursor_rebase(seat->cursor); 649 cursor_rebase(seat->cursor);
650 } 650 }
651} 651}