2018-12-31 00:12:33 +01:00
|
|
|
#ifndef CG_SERVER_H
|
|
|
|
|
#define CG_SERVER_H
|
|
|
|
|
|
2018-12-31 17:24:21 +01:00
|
|
|
#include "config.h"
|
|
|
|
|
|
2018-12-31 00:12:33 +01:00
|
|
|
#include <wayland-server.h>
|
|
|
|
|
#include <wlr/backend.h>
|
2019-01-04 17:06:27 +01:00
|
|
|
#include <wlr/types/wlr_idle.h>
|
2019-01-08 23:24:51 +01:00
|
|
|
#include <wlr/types/wlr_idle_inhibit_v1.h>
|
2018-12-31 00:12:33 +01:00
|
|
|
#include <wlr/types/wlr_output_layout.h>
|
2019-01-03 21:55:25 +01:00
|
|
|
#if CAGE_HAS_XWAYLAND
|
2018-12-31 17:24:21 +01:00
|
|
|
#include <wlr/xwayland.h>
|
|
|
|
|
#endif
|
2018-12-31 00:12:33 +01:00
|
|
|
|
|
|
|
|
#include "output.h"
|
|
|
|
|
#include "seat.h"
|
2019-01-24 14:14:15 +01:00
|
|
|
#include "view.h"
|
2018-12-31 00:12:33 +01:00
|
|
|
|
|
|
|
|
struct cg_server {
|
|
|
|
|
struct wl_display *wl_display;
|
|
|
|
|
struct wlr_backend *backend;
|
|
|
|
|
|
|
|
|
|
struct wl_listener new_xdg_shell_surface;
|
|
|
|
|
struct wl_list views;
|
|
|
|
|
|
|
|
|
|
struct cg_seat *seat;
|
2019-01-04 17:06:27 +01:00
|
|
|
struct wlr_idle *idle;
|
2019-01-08 23:24:51 +01:00
|
|
|
struct wlr_idle_inhibit_manager_v1 *idle_inhibit_v1;
|
|
|
|
|
struct wl_listener new_idle_inhibitor_v1;
|
|
|
|
|
struct wl_list inhibitors;
|
2018-12-31 00:12:33 +01:00
|
|
|
|
|
|
|
|
struct wlr_output_layout *output_layout;
|
|
|
|
|
struct cg_output *output;
|
|
|
|
|
struct wl_listener new_output;
|
2018-12-31 17:24:21 +01:00
|
|
|
|
|
|
|
|
#if CAGE_HAS_XWAYLAND
|
|
|
|
|
struct wl_listener new_xwayland_surface;
|
|
|
|
|
#endif
|
2018-12-31 00:12:33 +01:00
|
|
|
};
|
|
|
|
|
|
2019-01-24 14:14:15 +01:00
|
|
|
void set_window_title(struct cg_server *server, struct cg_view *view);
|
|
|
|
|
|
2018-12-31 00:12:33 +01:00
|
|
|
#endif
|