sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 2b15cf453e4b28324e9012515011a705c2960b30
parent 0efc28e2f58a9a98d219cf2f3a92e18577c9926c
Author: David96 <david@hameipe.de>
Date:   Thu,  9 Apr 2020 12:33:18 +0200

Don't transfer focus to NULL node on touch

Fixes #5185

Diffstat:
Msway/input/cursor.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sway/input/cursor.c b/sway/input/cursor.c @@ -408,7 +408,9 @@ static void handle_touch_down(struct wl_listener *listener, void *data) { event->touch_id, sx, sy); } - seat_set_focus(seat, focused_node); + if (focused_node) { + seat_set_focus(seat, focused_node); + } } static void handle_touch_up(struct wl_listener *listener, void *data) {