mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-11-21 06:59:49 -05:00
desktop: add new view abstraction with xdg shell implementation
This commit is contained in:
parent
248f4847df
commit
de61d06406
5 changed files with 445 additions and 0 deletions
23
desktop/xdg_shell.h
Normal file
23
desktop/xdg_shell.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#ifndef CG_XDG_SHELL_H
|
||||
#define CG_XDG_SHELL_H
|
||||
|
||||
#include <wlr/types/wlr_xdg_shell.h>
|
||||
|
||||
#include "output.h"
|
||||
#include "view.h"
|
||||
|
||||
struct cg_xdg_shell_view {
|
||||
struct cg_view view;
|
||||
struct wlr_xdg_surface *xdg_surface;
|
||||
|
||||
struct wl_listener map;
|
||||
struct wl_listener unmap;
|
||||
struct wl_listener destroy;
|
||||
struct wl_listener commit;
|
||||
struct wl_listener request_fullscreen;
|
||||
};
|
||||
|
||||
void cage_xdg_shell_view_init(struct cg_xdg_shell_view *xdg_shell_view, struct wlr_xdg_surface *wlr_xdg_surface,
|
||||
struct cg_output *output);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue