diff options
author | 2018-06-30 06:41:33 -0700 | |
---|---|---|
committer | 2018-06-30 06:41:33 -0700 | |
commit | 792eb6ad402ae76bdc12b267af6bf7abac2b95f9 (patch) | |
tree | a4f6056b5cfa80e065f366d20e1d97957d3ee393 /include | |
parent | Merge pull request #2072 from RyanDwyer/atomic (diff) | |
parent | sway views: add helpers to get view and layer from wlr_surface (diff) | |
download | sway-792eb6ad402ae76bdc12b267af6bf7abac2b95f9.tar.gz sway-792eb6ad402ae76bdc12b267af6bf7abac2b95f9.tar.zst sway-792eb6ad402ae76bdc12b267af6bf7abac2b95f9.zip |
Merge pull request #2174 from martinetd/view-from-surface
sway views: add helpers to get view and layer from wlr_surface
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/layers.h | 3 | ||||
-rw-r--r-- | include/sway/tree/view.h | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/sway/layers.h b/include/sway/layers.h index ee47c5ad..96155eae 100644 --- a/include/sway/layers.h +++ b/include/sway/layers.h | |||
@@ -22,4 +22,7 @@ struct sway_layer_surface { | |||
22 | struct sway_output; | 22 | struct sway_output; |
23 | void arrange_layers(struct sway_output *output); | 23 | void arrange_layers(struct sway_output *output); |
24 | 24 | ||
25 | struct sway_layer_surface *layer_from_wlr_layer_surface( | ||
26 | struct wlr_layer_surface *layer_surface); | ||
27 | |||
25 | #endif | 28 | #endif |
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, | |||
260 | 260 | ||
261 | void view_child_destroy(struct sway_view_child *child); | 261 | void view_child_destroy(struct sway_view_child *child); |
262 | 262 | ||
263 | |||
264 | struct sway_view *view_from_wlr_xdg_surface( | ||
265 | struct wlr_xdg_surface *xdg_surface); | ||
266 | struct sway_view *view_from_wlr_xdg_surface_v6( | ||
267 | struct wlr_xdg_surface_v6 *xdg_surface_v6); | ||
268 | struct sway_view *view_from_wlr_xwayland_surface( | ||
269 | struct wlr_xwayland_surface *xsurface); | ||
270 | |||
271 | struct sway_view *view_from_wlr_surface(struct wlr_surface *surface); | ||
272 | |||
263 | /** | 273 | /** |
264 | * Re-read the view's title property and update any relevant title bars. | 274 | * Re-read the view's title property and update any relevant title bars. |
265 | * The force argument makes it recreate the title bars even if the title hasn't | 275 | * The force argument makes it recreate the title bars even if the title hasn't |