Merge pull request #2030 from Consolatis/wip/cosmic_workspaces

Initial implementation of cosmic-workspace-unstable-v1
This commit is contained in:
Johan Malm 2024-10-01 21:31:04 +01:00 committed by GitHub
commit d18e67eea8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 1578 additions and 38 deletions

View file

@ -145,7 +145,7 @@ desktop_topmost_focusable_view(struct server *server)
struct view *view;
struct wl_list *node_list;
struct wlr_scene_node *node;
node_list = &server->workspace_current->tree->children;
node_list = &server->workspaces.current->tree->children;
wl_list_for_each_reverse(node, node_list, link) {
if (!node->data) {
/* We found some non-view, most likely the region overlay */
@ -185,7 +185,7 @@ desktop_focus_output(struct output *output)
struct wlr_scene_node *node;
struct wlr_output_layout *layout = output->server->output_layout;
struct wl_list *list_head =
&output->server->workspace_current->tree->children;
&output->server->workspaces.current->tree->children;
wl_list_for_each_reverse(node, list_head, link) {
if (!node->data) {
continue;