]> git.mdlowis.com Git - proto/labwc.git/commitdiff
cosmic-workspaces: fix menu.c
authorJohan Malm <jgm323@gmail.com>
Tue, 1 Oct 2024 20:41:36 +0000 (21:41 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 1 Oct 2024 20:45:13 +0000 (21:45 +0100)
src/menu/menu.c

index 3f0cf777e423766556d701284e6fd18e51ea45f2..cde75ccc5ca13d9db4e9ed81c05a88e02fe139b4 100644 (file)
@@ -942,8 +942,8 @@ update_client_send_to_menu(struct server *server)
 
        struct workspace *workspace;
 
-       wl_list_for_each(workspace, &server->workspaces, link) {
-               if (workspace == server->workspace_current) {
+       wl_list_for_each(workspace, &server->workspaces.all, link) {
+               if (workspace == server->workspaces.current) {
                        current_item = item_create(menu, strdup_printf(">%s<", workspace->name),
                                        /*show arrow*/ false);
                } else {
@@ -993,8 +993,8 @@ update_client_list_combined_menu(struct server *server)
        struct view *view;
        struct buf buffer = BUF_INIT;
 
-       wl_list_for_each(workspace, &server->workspaces, link) {
-               buf_add_fmt(&buffer, workspace == server->workspace_current ? ">%s<" : "%s",
+       wl_list_for_each(workspace, &server->workspaces.all, link) {
+               buf_add_fmt(&buffer, workspace == server->workspaces.current ? ">%s<" : "%s",
                                workspace->name);
                current_item = separator_create(menu, buffer.data);
                buf_clear(&buffer);