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.
82 lines
2 KiB
C
82 lines
2 KiB
C
// Copyright 2020 - 2024, project-repo and the cagebreak contributors
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#ifndef CG_SERVER_H
|
|
#define CG_SERVER_H
|
|
|
|
#include "config.h"
|
|
#include "ipc_server.h"
|
|
#include "message.h"
|
|
|
|
#include <wayland-server-core.h>
|
|
#include <wlr/types/wlr_xdg_decoration_v1.h>
|
|
|
|
struct cg_seat;
|
|
struct cg_output;
|
|
struct keybinding_list;
|
|
struct wlr_output_layout;
|
|
struct wlr_idle_inhibit_manager_v1;
|
|
struct cg_output_config;
|
|
struct cg_input_manager;
|
|
|
|
struct cg_server {
|
|
struct wl_display *wl_display;
|
|
struct wl_event_loop *event_loop;
|
|
|
|
struct cg_seat *seat;
|
|
struct cg_input_manager *input;
|
|
struct wlr_backend *backend;
|
|
struct wlr_idle_notifier_v1 *idle;
|
|
struct wlr_idle_inhibit_manager_v1 *idle_inhibit_v1;
|
|
struct wl_listener new_idle_inhibitor_v1;
|
|
struct wlr_gamma_control_manager_v1 *gamma_control;
|
|
struct wl_listener gamma_control_set_gamma;
|
|
struct wl_list inhibitors;
|
|
|
|
struct wlr_output_layout *output_layout;
|
|
struct wlr_scene_output_layout *scene_output_layout;
|
|
struct wl_list disabled_outputs;
|
|
struct wl_list outputs;
|
|
struct cg_output *curr_output;
|
|
struct wl_listener new_output;
|
|
struct wl_list output_priorities;
|
|
struct wlr_backend *headless_backend;
|
|
struct wlr_session *session;
|
|
|
|
struct wlr_renderer *renderer;
|
|
struct wlr_allocator *allocator;
|
|
struct wlr_scene *scene;
|
|
|
|
struct wl_listener xdg_toplevel_decoration;
|
|
struct wl_listener new_xdg_shell_surface;
|
|
#if CG_HAS_XWAYLAND
|
|
struct wl_listener new_xwayland_surface;
|
|
struct wlr_xwayland *xwayland;
|
|
#endif
|
|
|
|
struct keybinding_list *keybindings;
|
|
struct wl_list output_config;
|
|
struct wl_list input_config;
|
|
struct cg_message_config message_config;
|
|
|
|
struct cg_ipc_handle ipc;
|
|
|
|
bool enable_socket;
|
|
bool bs;
|
|
bool running;
|
|
char **modes;
|
|
uint16_t nws;
|
|
float *bg_color;
|
|
uint32_t views_curr_id;
|
|
uint32_t tiles_curr_id;
|
|
uint32_t xcursor_size;
|
|
};
|
|
|
|
void
|
|
display_terminate(struct cg_server *server);
|
|
int
|
|
get_mode_index_from_name(char *const *modes, const char *mode_name);
|
|
char *
|
|
server_show_info(struct cg_server *server);
|
|
|
|
#endif
|