mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-29 05:40:20 -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);
|
seat_set_focus_layer(seat, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wb_toplevel *toplevel = wl_container_of(surface->server->toplevels.next, toplevel, link);
|
if (!wl_list_empty(&surface->server->toplevels)) {
|
||||||
if (toplevel && toplevel->scene_tree && toplevel->scene_tree->node.enabled) {
|
struct wb_toplevel *toplevel =
|
||||||
focus_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