mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-09 07:09:11 +02:00
Functionality: * Add configuration to anchor position of messages (#60, 71 in Bugs.md). * Add output priorisation (#38, 68 in Bugs.md). * Print whether output is active in dump. Bug Fixes: * Fix gamma control (72 in Bugs.md). * Add missing commands to example config. * Add message_config to dump output. Example Scripts: * Add screenshot script. * Make example scripts standalone. Documentation: * Escape html tags in config man page. (#68, 69 in Bugs.md) * Improve README.md (#62, 70 in Bugs.md). * Improve SECURITY.md. * Add CONTRIBUTING.md (#62, 70 in Bugs.md). * FAQ: Add Firefox screenshare instructions for wayland. * FAQ: Add wlroots downgrading instructions for workaround in case of temporary wlroots incompatibility. * Update copyright notices to 2024. Development Tooling: * Add new gpg keys (signed by the old ones). * Add PR template. * Add dev-FAQ. * Remove now-unnecessary fanalyzer pragmas.
49 lines
1.1 KiB
C
49 lines
1.1 KiB
C
// Copyright 2020 - 2024, project-repo and the cagebreak contributors
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#ifndef CG_WORKSPACE_H
|
|
#define CG_WORKSPACE_H
|
|
|
|
#include <wlr/util/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;
|
|
uint32_t id;
|
|
};
|
|
|
|
struct cg_workspace {
|
|
struct cg_server *server;
|
|
struct wl_list views;
|
|
struct wl_list unmanaged_views;
|
|
struct cg_output *output;
|
|
struct wlr_scene_tree *scene;
|
|
|
|
struct cg_tile *focused_tile;
|
|
uint32_t num;
|
|
};
|
|
|
|
struct cg_workspace *
|
|
full_screen_workspace(struct cg_output *output);
|
|
int
|
|
full_screen_workspace_tiles(struct wlr_output_layout *layout,
|
|
struct cg_workspace *workspace,
|
|
uint32_t *tiles_curr_id);
|
|
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);
|
|
void
|
|
workspace_focus(struct cg_output *outp, int ws);
|
|
void
|
|
workspace_tile_update_view(struct cg_tile *tile, struct cg_view *view);
|
|
|
|
#endif
|