aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/view.h
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-05-13 16:38:56 +0100
committerLibravatar emersion <contact@emersion.fr>2018-05-13 16:38:56 +0100
commit88d9d43b367b9b0cb61c4c9fb1619becdb71e9d6 (patch)
tree20597fec9184cbad25711a0f0cd7c028e99d2e78 /include/sway/tree/view.h
parentMerge pull request #1960 from RedSoxFan/edge-borders (diff)
downloadsway-88d9d43b367b9b0cb61c4c9fb1619becdb71e9d6.tar.gz
sway-88d9d43b367b9b0cb61c4c9fb1619becdb71e9d6.tar.zst
sway-88d9d43b367b9b0cb61c4c9fb1619becdb71e9d6.zip
Add xdg-shell stable support
Diffstat (limited to 'include/sway/tree/view.h')
-rw-r--r--include/sway/tree/view.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 8091fe0c..17e579c8 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -12,6 +12,7 @@ struct sway_container;
12enum sway_view_type { 12enum sway_view_type {
13 SWAY_VIEW_WL_SHELL, 13 SWAY_VIEW_WL_SHELL,
14 SWAY_VIEW_XDG_SHELL_V6, 14 SWAY_VIEW_XDG_SHELL_V6,
15 SWAY_VIEW_XDG_SHELL,
15 SWAY_VIEW_XWAYLAND, 16 SWAY_VIEW_XWAYLAND,
16}; 17};
17 18
@@ -54,6 +55,7 @@ struct sway_view {
54 55
55 union { 56 union {
56 struct wlr_xdg_surface_v6 *wlr_xdg_surface_v6; 57 struct wlr_xdg_surface_v6 *wlr_xdg_surface_v6;
58 struct wlr_xdg_surface *wlr_xdg_surface;
57 struct wlr_xwayland_surface *wlr_xwayland_surface; 59 struct wlr_xwayland_surface *wlr_xwayland_surface;
58 struct wlr_wl_shell_surface *wlr_wl_shell_surface; 60 struct wlr_wl_shell_surface *wlr_wl_shell_surface;
59 }; 61 };
@@ -82,6 +84,22 @@ struct sway_xdg_shell_v6_view {
82 int pending_width, pending_height; 84 int pending_width, pending_height;
83}; 85};
84 86
87struct sway_xdg_shell_view {
88 struct sway_view view;
89
90 struct wl_listener commit;
91 struct wl_listener request_move;
92 struct wl_listener request_resize;
93 struct wl_listener request_maximize;
94 struct wl_listener request_fullscreen;
95 struct wl_listener new_popup;
96 struct wl_listener map;
97 struct wl_listener unmap;
98 struct wl_listener destroy;
99
100 int pending_width, pending_height;
101};
102
85struct sway_xwayland_view { 103struct sway_xwayland_view {
86 struct sway_view view; 104 struct sway_view view;
87 105
@@ -156,6 +174,15 @@ struct sway_xdg_popup_v6 {
156 struct wl_listener destroy; 174 struct wl_listener destroy;
157}; 175};
158 176
177struct sway_xdg_popup {
178 struct sway_view_child child;
179
180 struct wlr_xdg_surface *wlr_xdg_surface;
181
182 struct wl_listener new_popup;
183 struct wl_listener destroy;
184};
185
159const char *view_get_title(struct sway_view *view); 186const char *view_get_title(struct sway_view *view);
160 187
161const char *view_get_app_id(struct sway_view *view); 188const char *view_get_app_id(struct sway_view *view);