mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-02-22 01:40:49 -05:00
view: add proper abstraction with interface
This commit is contained in:
parent
24517922cc
commit
64b971a665
7 changed files with 201 additions and 121 deletions
14
xdg_shell.h
14
xdg_shell.h
|
|
@ -2,6 +2,20 @@
|
|||
#define CG_XDG_SHELL_H
|
||||
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/types/wlr_xdg_shell.h>
|
||||
|
||||
#include "view.h"
|
||||
|
||||
struct cg_xdg_shell_view {
|
||||
struct cg_view view;
|
||||
struct wlr_xdg_surface *xdg_surface;
|
||||
|
||||
struct wl_listener destroy;
|
||||
struct wl_listener unmap;
|
||||
struct wl_listener map;
|
||||
// TODO: allow applications to go to fullscreen from maximized?
|
||||
// struct wl_listener request_fullscreen;
|
||||
};
|
||||
|
||||
void handle_xdg_shell_surface_new(struct wl_listener *listener, void *data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue