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,11 +173,14 @@ 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 (!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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void wb_layer_surface_destroy(struct wb_layer_surface *surface) {
|
||||
if (surface == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue