mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-30 11:10:50 -04: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
15
xwayland.h
15
xwayland.h
|
|
@ -2,7 +2,22 @@
|
|||
#define CG_XWAYLAND_H
|
||||
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/xwayland.h>
|
||||
|
||||
#include "view.h"
|
||||
|
||||
struct cg_xwayland_view {
|
||||
struct cg_view view;
|
||||
struct wlr_xwayland_surface *xwayland_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;
|
||||
};
|
||||
|
||||
struct cg_xwayland_view *xwayland_view_from_view(struct cg_view *view);
|
||||
void handle_xwayland_surface_new(struct wl_listener *listener, void *data);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue