diff options
author | Brian Ashworth <RedSoxFan@users.noreply.github.com> | 2018-05-14 00:28:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-14 00:28:21 -0400 |
commit | 34b864fb1752fde2528db6aa86d53c23412a8f43 (patch) | |
tree | b387f1e1eb8f8fc16faeb4bf24a0ab6e8ba5787c /include/sway/tree/view.h | |
parent | Fix titles and detect edges for hide_edge_borders (diff) | |
parent | Actually fix swayidle (diff) | |
download | sway-34b864fb1752fde2528db6aa86d53c23412a8f43.tar.gz sway-34b864fb1752fde2528db6aa86d53c23412a8f43.tar.zst sway-34b864fb1752fde2528db6aa86d53c23412a8f43.zip |
Merge branch 'master' into fix-1975
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 de431c89..e163e3fe 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 | ||
@@ -58,6 +59,7 @@ struct sway_view { | |||
58 | 59 | ||
59 | union { | 60 | union { |
60 | struct wlr_xdg_surface_v6 *wlr_xdg_surface_v6; | 61 | struct wlr_xdg_surface_v6 *wlr_xdg_surface_v6; |
62 | struct wlr_xdg_surface *wlr_xdg_surface; | ||
61 | struct wlr_xwayland_surface *wlr_xwayland_surface; | 63 | struct wlr_xwayland_surface *wlr_xwayland_surface; |
62 | struct wlr_wl_shell_surface *wlr_wl_shell_surface; | 64 | struct wlr_wl_shell_surface *wlr_wl_shell_surface; |
63 | }; | 65 | }; |
@@ -86,6 +88,22 @@ struct sway_xdg_shell_v6_view { | |||
86 | int pending_width, pending_height; | 88 | int pending_width, pending_height; |
87 | }; | 89 | }; |
88 | 90 | ||
91 | struct sway_xdg_shell_view { | ||
92 | struct sway_view view; | ||
93 | |||
94 | struct wl_listener commit; | ||
95 | struct wl_listener request_move; | ||
96 | struct wl_listener request_resize; | ||
97 | struct wl_listener request_maximize; | ||
98 | struct wl_listener request_fullscreen; | ||
99 | struct wl_listener new_popup; | ||
100 | struct wl_listener map; | ||
101 | struct wl_listener unmap; | ||
102 | struct wl_listener destroy; | ||
103 | |||
104 | int pending_width, pending_height; | ||
105 | }; | ||
106 | |||
89 | struct sway_xwayland_view { | 107 | struct sway_xwayland_view { |
90 | struct sway_view view; | 108 | struct sway_view view; |
91 | 109 | ||
@@ -160,6 +178,15 @@ struct sway_xdg_popup_v6 { | |||
160 | struct wl_listener destroy; | 178 | struct wl_listener destroy; |
161 | }; | 179 | }; |
162 | 180 | ||
181 | struct sway_xdg_popup { | ||
182 | struct sway_view_child child; | ||
183 | |||
184 | struct wlr_xdg_surface *wlr_xdg_surface; | ||
185 | |||
186 | struct wl_listener new_popup; | ||
187 | struct wl_listener destroy; | ||
188 | }; | ||
189 | |||
163 | const char *view_get_title(struct sway_view *view); | 190 | const char *view_get_title(struct sway_view *view); |
164 | 191 | ||
165 | const char *view_get_app_id(struct sway_view *view); | 192 | const char *view_get_app_id(struct sway_view *view); |