mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-11-02 09:01:41 -05:00
xdg_shell: add support for wlr-foreign-toplevel-management
This commit is contained in:
parent
2e593fe5a8
commit
b35d0afae4
6 changed files with 129 additions and 9 deletions
10
xdg_shell.h
10
xdg_shell.h
|
|
@ -7,6 +7,14 @@
|
|||
|
||||
#include "view.h"
|
||||
|
||||
struct cg_foreign_toplevel_handle {
|
||||
struct cg_xdg_shell_view *view;
|
||||
|
||||
struct wl_listener request_activate;
|
||||
struct wl_listener request_close;
|
||||
struct wl_listener request_fullscreen;
|
||||
};
|
||||
|
||||
struct cg_xdg_shell_view {
|
||||
struct cg_view view;
|
||||
struct wlr_xdg_toplevel *xdg_toplevel;
|
||||
|
|
@ -16,6 +24,8 @@ struct cg_xdg_shell_view {
|
|||
struct wl_listener unmap;
|
||||
struct wl_listener map;
|
||||
struct wl_listener request_fullscreen;
|
||||
|
||||
struct cg_foreign_toplevel_handle *foreign_toplevel;
|
||||
};
|
||||
|
||||
struct cg_xdg_decoration {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue