mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-02-18 22:05:57 -05:00
Add support for wlr-foreign-toplevel-management
This commit is contained in:
parent
f9626f7951
commit
af0a3cf8a6
6 changed files with 85 additions and 7 deletions
5
view.h
5
view.h
|
|
@ -32,6 +32,10 @@ struct cg_view {
|
|||
|
||||
enum cg_view_type type;
|
||||
const struct cg_view_impl *impl;
|
||||
|
||||
struct wlr_foreign_toplevel_handle_v1 *foreign_toplevel_handle;
|
||||
struct wl_listener request_activate;
|
||||
struct wl_listener request_close;
|
||||
};
|
||||
|
||||
struct cg_view_impl {
|
||||
|
|
@ -41,6 +45,7 @@ struct cg_view_impl {
|
|||
bool (*is_transient_for)(struct cg_view *child, struct cg_view *parent);
|
||||
void (*activate)(struct cg_view *view, bool activate);
|
||||
void (*maximize)(struct cg_view *view, int output_width, int output_height);
|
||||
void (*close)(struct cg_view *view);
|
||||
void (*destroy)(struct cg_view *view);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue