mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-28 05:40:18 -04:00
Fixed another crash
This commit is contained in:
parent
db79d83076
commit
606663a390
1 changed files with 6 additions and 3 deletions
|
|
@ -173,9 +173,12 @@ static void handle_unmap(struct wl_listener *listener, void *data) {
|
|||
seat_set_focus_layer(seat, NULL);
|
||||
}
|
||||
|
||||
struct wb_toplevel *toplevel = wl_container_of(surface->server->toplevels.next, toplevel, link);
|
||||
if (toplevel && toplevel->scene_tree && toplevel->scene_tree->node.enabled) {
|
||||
focus_toplevel(toplevel);
|
||||
if (!wl_list_empty(&surface->server->toplevels)) {
|
||||
struct wb_toplevel *toplevel =
|
||||
wl_container_of(surface->server->toplevels.next, toplevel, link);
|
||||
if (toplevel && toplevel->scene_tree && toplevel->scene_tree->node.enabled) {
|
||||
focus_toplevel(toplevel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue