cosmic-workspaces: labwc integration

This commit is contained in:
Consolatis 2024-07-24 01:04:44 +02:00
parent 31f4336ed6
commit 904e0d2e97
4 changed files with 61 additions and 0 deletions

View file

@ -301,6 +301,11 @@ struct server {
struct wl_list all; /* struct workspace.link */
struct workspace *current;
struct workspace *last;
struct lab_cosmic_workspace_manager *cosmic_manager;
struct lab_cosmic_workspace_group *cosmic_group;
struct {
struct wl_listener layout_output_added;
} on;
} workspaces;
struct wl_list outputs;

View file

@ -4,6 +4,7 @@
#include <stdbool.h>
#include <wayland-util.h>
#include <wayland-server-core.h>
struct seat;
struct server;
@ -19,6 +20,13 @@ struct workspace {
char *name;
struct wlr_scene_tree *tree;
struct lab_cosmic_workspace *cosmic_workspace;
struct {
struct wl_listener activate;
struct wl_listener deactivate;
struct wl_listener remove;
} on;
};
void workspaces_init(struct server *server);