diff options
author | emersion <contact@emersion.fr> | 2018-04-06 10:26:32 -0400 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-04-06 10:26:32 -0400 |
commit | 290c9162901008d306b68566e4a5c2a778d19db8 (patch) | |
tree | 4323a9130346ca4d836b0ae70c03877e13310bfc /include | |
parent | Avoid arranging windows while reloading config (diff) | |
download | sway-290c9162901008d306b68566e4a5c2a778d19db8.tar.gz sway-290c9162901008d306b68566e4a5c2a778d19db8.tar.zst sway-290c9162901008d306b68566e4a5c2a778d19db8.zip |
Send surface enter/leave events to view children
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/tree/view.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 6b2d279e..611c4f0b 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -28,6 +28,8 @@ struct sway_view_impl { | |||
28 | void (*configure)(struct sway_view *view, double ox, double oy, int width, | 28 | void (*configure)(struct sway_view *view, double ox, double oy, int width, |
29 | int height); | 29 | int height); |
30 | void (*set_activated)(struct sway_view *view, bool activated); | 30 | void (*set_activated)(struct sway_view *view, bool activated); |
31 | void (*for_each_surface)(struct sway_view *view, | ||
32 | wlr_surface_iterator_func_t iterator, void *user_data); | ||
31 | void (*close)(struct sway_view *view); | 33 | void (*close)(struct sway_view *view); |
32 | void (*destroy)(struct sway_view *view); | 34 | void (*destroy)(struct sway_view *view); |
33 | }; | 35 | }; |
@@ -159,6 +161,9 @@ void view_damage_whole(struct sway_view *view); | |||
159 | 161 | ||
160 | void view_damage_from(struct sway_view *view); | 162 | void view_damage_from(struct sway_view *view); |
161 | 163 | ||
164 | void view_for_each_surface(struct sway_view *view, | ||
165 | wlr_surface_iterator_func_t iterator, void *user_data); | ||
166 | |||
162 | // view implementation | 167 | // view implementation |
163 | 168 | ||
164 | void view_init(struct sway_view *view, enum sway_view_type type, | 169 | void view_init(struct sway_view *view, enum sway_view_type type, |