diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2018-06-30 14:00:24 +0900 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2018-06-30 22:31:14 +0900 |
commit | 9ea4cc13a0cf2d231c4e4c71aa674cd76831e6f9 (patch) | |
tree | a4f6056b5cfa80e065f366d20e1d97957d3ee393 /include/sway/tree/view.h | |
parent | d8c61c976372eedf271f505ffd82c461b6503f6f (diff) |
sway views: add helpers to get view and layer from wlr_surface
Diffstat (limited to 'include/sway/tree/view.h')
-rw-r--r-- | include/sway/tree/view.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index b99044d3..7dc8ac46 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h @@ -260,6 +260,16 @@ void view_child_init(struct sway_view_child *child, void view_child_destroy(struct sway_view_child *child); + +struct sway_view *view_from_wlr_xdg_surface( + struct wlr_xdg_surface *xdg_surface); +struct sway_view *view_from_wlr_xdg_surface_v6( + struct wlr_xdg_surface_v6 *xdg_surface_v6); +struct sway_view *view_from_wlr_xwayland_surface( + struct wlr_xwayland_surface *xsurface); + +struct sway_view *view_from_wlr_surface(struct wlr_surface *surface); + /** * Re-read the view's title property and update any relevant title bars. * The force argument makes it recreate the title bars even if the title hasn't |