sway

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

commit 5dd535b67a985c7751d1dc351528f0194c33458a
parent 54a835e962b45683e1def4a9aaf1c1371fb4aa28
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date:   Wed,  3 Oct 2018 22:09:20 +1000

Add sanity check for empty focus stack

Diffstat:
Msway/input/seat.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/sway/input/seat.c b/sway/input/seat.c @@ -952,6 +952,9 @@ struct sway_node *seat_get_focus(struct sway_seat *seat) { if (!seat->has_focus) { return NULL; } + if (wl_list_length(&seat->focus_stack) == 0) { + return NULL; + } struct sway_seat_node *current = wl_container_of(seat->focus_stack.next, current, link); return current->node;