mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-09 15:19:11 +02:00
Release 1.0.0
- Add basic tiling compositor functionality
This commit is contained in:
commit
de6c07ca2a
45 changed files with 6864 additions and 0 deletions
38
workspace.h
Normal file
38
workspace.h
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#ifndef CG_WORKSPACE_H
|
||||
#define CG_WORKSPACE_H
|
||||
|
||||
#include <wlr/types/wlr_box.h>
|
||||
|
||||
struct cg_output;
|
||||
struct cg_server;
|
||||
|
||||
struct cg_tile {
|
||||
struct cg_workspace *workspace;
|
||||
struct wlr_box tile;
|
||||
struct cg_view *view;
|
||||
struct cg_tile *next;
|
||||
struct cg_tile *prev;
|
||||
};
|
||||
|
||||
struct cg_workspace {
|
||||
struct cg_server *server;
|
||||
struct wl_list views;
|
||||
struct wl_list unmanaged_views;
|
||||
struct cg_output *output;
|
||||
|
||||
struct cg_tile *focused_tile;
|
||||
};
|
||||
|
||||
struct cg_workspace *
|
||||
full_screen_workspace(struct cg_output *output);
|
||||
void
|
||||
full_screen_workspace_tiles(const struct cg_output *output,
|
||||
struct cg_workspace *workspace);
|
||||
void
|
||||
workspace_free_tiles(struct cg_workspace *workspace);
|
||||
void
|
||||
workspace_free(struct cg_workspace *workspace);
|
||||
void
|
||||
workspace_focus_tile(struct cg_workspace *ws, struct cg_tile *tile);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue