mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-29 05:40:20 -04:00
Fixed the crash from the last commit
This commit is contained in:
parent
4f0f564e27
commit
31d0ef57e5
1 changed files with 5 additions and 1 deletions
|
|
@ -204,7 +204,11 @@ static void handle_unmap(struct wl_listener *listener, void *data) {
|
|||
}
|
||||
|
||||
struct wb_view *view = wl_container_of(surface->server->views.next, view, link);
|
||||
if (view) {
|
||||
#if WLR_CHECK_VERSION(0, 16, 0)
|
||||
if (view && view->scene_tree && view->scene_tree->node.enabled) {
|
||||
#else
|
||||
if (view && view->scene_node && view->scene_node->state.enabled) {
|
||||
#endif
|
||||
focus_view(view, view->xdg_toplevel->base->surface);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue