aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/xdg_decoration.h
blob: 8bef4c6d44c7a3aa0a99a263270f755d76f2f3a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 request_mode;
};

struct sway_xdg_decoration *xdg_decoration_from_surface(
	struct wlr_surface *surface);

#endif