diff options
Diffstat (limited to 'include/sway/tree/view.h')
-rw-r--r-- | include/sway/tree/view.h | 27 |
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; | |||
12 | enum sway_view_type { | 12 | enum 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 | ||
87 | struct 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 | |||
85 | struct sway_xwayland_view { | 103 | struct 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 | ||
177 | struct 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 | |||
159 | const char *view_get_title(struct sway_view *view); | 186 | const char *view_get_title(struct sway_view *view); |
160 | 187 | ||
161 | const char *view_get_app_id(struct sway_view *view); | 188 | const char *view_get_app_id(struct sway_view *view); |