diff options
Diffstat (limited to 'include/sway/xdg_decoration.h')
-rw-r--r-- | include/sway/xdg_decoration.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/sway/xdg_decoration.h b/include/sway/xdg_decoration.h new file mode 100644 index 00000000..46fb8d34 --- /dev/null +++ b/include/sway/xdg_decoration.h @@ -0,0 +1,19 @@ +#ifndef _SWAY_XDG_DECORATION_H +#define _SWAY_XDG_DECORATION_H + +#include <wlr/types/wlr_xdg_decoration_v1.h> + +struct sway_xdg_decoration { + struct wlr_xdg_toplevel_decoration_v1 *wlr_xdg_decoration; + struct wl_list link; + + struct sway_view *view; + + struct wl_listener destroy; + struct wl_listener surface_commit; +}; + +struct sway_xdg_decoration *xdg_decoration_from_surface( + struct wlr_surface *surface); + +#endif |