This might happen when closing the last
application "to tray" like VLC, Discord or Steam.
Reported-by: @Flrian
struct wl_list *list_head =
&server->workspace_current->tree->children;
wl_list_for_each_reverse(node, list_head, link) {
- return node_view_from_node(node);
+ struct view *view = node_view_from_node(node);
+ if (isfocusable(view)) {
+ return view;
+ }
}
return NULL;
}
struct wl_list *node_list =
&server->workspace_current->tree->children;
- if (wl_list_empty(node_list)) {
+ if (wl_list_empty(node_list) || !server->osd_state.cycle_view) {
osd_finish(server);
return;
}