mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
Outputs are arranged in a horizontal layout in the order they are created in by wlroots. Maximized xdg_shell views will span all outputs, like the global fullscreen mode in sway. Fixes #87
48 lines
1 KiB
C
48 lines
1 KiB
C
#ifndef CG_SERVER_H
|
|
#define CG_SERVER_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <wayland-server-core.h>
|
|
#include <wlr/backend.h>
|
|
#include <wlr/types/wlr_idle.h>
|
|
#include <wlr/types/wlr_idle_inhibit_v1.h>
|
|
#include <wlr/types/wlr_output_layout.h>
|
|
#include <wlr/types/wlr_xdg_decoration_v1.h>
|
|
#if CAGE_HAS_XWAYLAND
|
|
#include <wlr/xwayland.h>
|
|
#endif
|
|
|
|
#include "output.h"
|
|
#include "seat.h"
|
|
#include "view.h"
|
|
|
|
struct cg_server {
|
|
struct wl_display *wl_display;
|
|
struct wlr_backend *backend;
|
|
struct wl_list views;
|
|
|
|
struct cg_seat *seat;
|
|
struct wlr_idle *idle;
|
|
struct wlr_idle_inhibit_manager_v1 *idle_inhibit_v1;
|
|
struct wl_listener new_idle_inhibitor_v1;
|
|
struct wl_list inhibitors;
|
|
|
|
struct wlr_output_layout *output_layout;
|
|
struct wl_list outputs;
|
|
struct wl_listener new_output;
|
|
|
|
struct wl_listener xdg_toplevel_decoration;
|
|
struct wl_listener new_xdg_shell_surface;
|
|
#if CAGE_HAS_XWAYLAND
|
|
struct wl_listener new_xwayland_surface;
|
|
#endif
|
|
|
|
bool xdg_decoration;
|
|
enum wl_output_transform output_transform;
|
|
#ifdef DEBUG
|
|
bool debug_damage_tracking;
|
|
#endif
|
|
};
|
|
|
|
#endif
|