diff options
Diffstat (limited to 'include/sway/tree/view.h')
-rw-r--r-- | include/sway/tree/view.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 3965d2b7..82a5541b 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -4,6 +4,8 @@ | |||
4 | #include <wlr/types/wlr_surface.h> | 4 | #include <wlr/types/wlr_surface.h> |
5 | #include <wlr/types/wlr_xdg_shell_v6.h> | 5 | #include <wlr/types/wlr_xdg_shell_v6.h> |
6 | #include <wlr/xwayland.h> | 6 | #include <wlr/xwayland.h> |
7 | #include "sway/input/input-manager.h" | ||
8 | #include "sway/input/seat.h" | ||
7 | 9 | ||
8 | struct sway_container; | 10 | struct sway_container; |
9 | struct sway_view; | 11 | struct sway_view; |
@@ -94,9 +96,13 @@ struct sway_view { | |||
94 | } iface; | 96 | } iface; |
95 | 97 | ||
96 | // only used for unmanaged views (shell specific) | 98 | // only used for unmanaged views (shell specific) |
97 | struct wl_list unmanaged_view_link; // sway_root::unmanaged views | 99 | struct wl_list unmanaged_view_link; // sway_root::unmanaged_views |
98 | }; | 100 | }; |
99 | 101 | ||
102 | struct sway_view *view_create(enum sway_view_type type); | ||
103 | |||
104 | void view_destroy(struct sway_view *view); | ||
105 | |||
100 | const char *view_get_title(struct sway_view *view); | 106 | const char *view_get_title(struct sway_view *view); |
101 | 107 | ||
102 | const char *view_get_app_id(struct sway_view *view); | 108 | const char *view_get_app_id(struct sway_view *view); |
@@ -113,7 +119,12 @@ void view_set_activated(struct sway_view *view, bool activated); | |||
113 | 119 | ||
114 | void view_close(struct sway_view *view); | 120 | void view_close(struct sway_view *view); |
115 | 121 | ||
116 | void view_update_outputs(struct sway_view *view, const struct wlr_box *before); | 122 | void view_map(struct sway_view *view, struct wlr_surface *wlr_surface); |
123 | |||
124 | void view_map_unmanaged(struct sway_view *view, | ||
125 | struct wlr_surface *wlr_surface); | ||
126 | |||
127 | void view_unmap(struct sway_view *view); | ||
117 | 128 | ||
118 | void view_damage_whole(struct sway_view *view); | 129 | void view_damage_whole(struct sway_view *view); |
119 | 130 | ||