desktop: add new view abstraction with xdg shell implementation

This commit is contained in:
Jente Hidskes 2020-06-30 23:18:50 +02:00
parent 248f4847df
commit de61d06406
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
5 changed files with 445 additions and 0 deletions

23
desktop/xdg_shell.h Normal file
View 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