diff options
author | emersion <contact@emersion.fr> | 2018-04-06 11:43:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-06 11:43:55 -0400 |
commit | d447460c0153a76a0bc484bb9866cef658b3102f (patch) | |
tree | 4323a9130346ca4d836b0ae70c03877e13310bfc /sway/desktop/xdg_shell_v6.c | |
parent | d77a0119f46ab977beca6725efed38fcb5f9e434 (diff) | |
parent | 290c9162901008d306b68566e4a5c2a778d19db8 (diff) |
Merge pull request #1755 from emersion/view-child-hidpi
Send surface enter/leave events to view children
Diffstat (limited to 'sway/desktop/xdg_shell_v6.c')
-rw-r--r-- | sway/desktop/xdg_shell_v6.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c index c66cc39a..8361aab3 100644 --- a/sway/desktop/xdg_shell_v6.c +++ b/sway/desktop/xdg_shell_v6.c @@ -118,6 +118,15 @@ static void set_activated(struct sway_view *view, bool activated) { } } +static void for_each_surface(struct sway_view *view, + wlr_surface_iterator_func_t iterator, void *user_data) { + if (xdg_shell_v6_view_from_view(view) == NULL) { + return; + } + wlr_xdg_surface_v6_for_each_surface(view->wlr_xdg_surface_v6, iterator, + user_data); +} + static void _close(struct sway_view *view) { if (xdg_shell_v6_view_from_view(view) == NULL) { return; @@ -146,6 +155,7 @@ static const struct sway_view_impl view_impl = { .get_prop = get_prop, .configure = configure, .set_activated = set_activated, + .for_each_surface = for_each_surface, .close = _close, .destroy = destroy, }; |