mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
Refactor cage into separate source files
This makes Cage much easier to maintain. Not only is it easier where to look and to maintain a mental model of the code, there is also more encapsulation, better abstractions and better extendability.
This commit is contained in:
parent
e1525a20c8
commit
2cf40f7a9b
11 changed files with 1084 additions and 657 deletions
25
server.h
Normal file
25
server.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef CG_SERVER_H
|
||||
#define CG_SERVER_H
|
||||
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/backend.h>
|
||||
#include <wlr/types/wlr_output_layout.h>
|
||||
|
||||
#include "output.h"
|
||||
#include "seat.h"
|
||||
|
||||
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;
|
||||
|
||||
struct wlr_output_layout *output_layout;
|
||||
struct cg_output *output;
|
||||
struct wl_listener new_output;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue