diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-04-02 19:19:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-02 19:19:38 -0400 |
commit | 64b9b4b1556c1c45273bfbe0ae1c92245414cfed (patch) | |
tree | 380408259cba4ea6a536f64f9726d37e65c59032 /sway/input | |
parent | 53aead266bb483b1aa987138a2d1658c332d0120 (diff) | |
parent | a4a241697ae591289d7c14eff972e1ef787216e2 (diff) |
Merge pull request #1691 from emersion/view-redesign
Views redesign
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/cursor.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 7d05e942..97b4473c 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -47,14 +47,15 @@ static struct wlr_surface *layer_surface_at(struct sway_output *output, static struct sway_container *container_at_cursor(struct sway_cursor *cursor, struct wlr_surface **surface, double *sx, double *sy) { // check for unmanaged views first - struct wl_list *unmanaged = &root_container.sway_root->unmanaged_views; - struct sway_view *view; - wl_list_for_each_reverse(view, unmanaged, unmanaged_view_link) { - if (view->type != SWAY_XWAYLAND_VIEW) { + struct wl_list *unmanaged = &root_container.sway_root->xwayland_unmanaged; + struct sway_xwayland_unmanaged *sway_surface; + wl_list_for_each_reverse(sway_surface, unmanaged, link) { + struct wlr_xwayland_surface *xsurface = + sway_surface->wlr_xwayland_surface; + if (xsurface->surface == NULL) { continue; } - struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface; struct wlr_box box = { .x = xsurface->x, .y = xsurface->y, |