aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-03 14:21:26 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-03 14:21:26 -0500
commit8239067da42545a59dbb43b941f69470d501f544 (patch)
treeede4a498ffd3f354ac85f296c4b45aed07aaa6ff /include
parentsway wl_shell (diff)
downloadsway-8239067da42545a59dbb43b941f69470d501f544.tar.gz
sway-8239067da42545a59dbb43b941f69470d501f544.tar.zst
sway-8239067da42545a59dbb43b941f69470d501f544.zip
basic wl-shell
Diffstat (limited to 'include')
-rw-r--r--include/sway/server.h3
-rw-r--r--include/sway/view.h12
2 files changed, 15 insertions, 0 deletions
diff --git a/include/sway/server.h b/include/sway/server.h
index 1901e39f..bfdb7b8a 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -30,6 +30,9 @@ struct sway_server {
30 30
31 struct wlr_xdg_shell_v6 *xdg_shell_v6; 31 struct wlr_xdg_shell_v6 *xdg_shell_v6;
32 struct wl_listener xdg_shell_v6_surface; 32 struct wl_listener xdg_shell_v6_surface;
33
34 struct wlr_wl_shell *wl_shell;
35 struct wl_listener wl_shell_surface;
33}; 36};
34 37
35struct sway_server server; 38struct sway_server server;
diff --git a/include/sway/view.h b/include/sway/view.h
index 77d451e5..22f5ccf9 100644
--- a/include/sway/view.h
+++ b/include/sway/view.h
@@ -19,6 +19,18 @@ struct sway_xdg_surface_v6 {
19 int pending_width, pending_height; 19 int pending_width, pending_height;
20}; 20};
21 21
22struct sway_wl_shell_surface {
23 struct sway_view *view;
24
25 struct wl_listener commit;
26 struct wl_listener request_move;
27 struct wl_listener request_resize;
28 struct wl_listener request_maximize;
29 struct wl_listener destroy;
30
31 int pending_width, pending_height;
32};
33
22enum sway_view_type { 34enum sway_view_type {
23 SWAY_WL_SHELL_VIEW, 35 SWAY_WL_SHELL_VIEW,
24 SWAY_XDG_SHELL_V6_VIEW, 36 SWAY_XDG_SHELL_V6_VIEW,