diff options
Diffstat (limited to 'sway/input/cursor.c')
-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, | |||
47 | static struct sway_container *container_at_cursor(struct sway_cursor *cursor, | 47 | static struct sway_container *container_at_cursor(struct sway_cursor *cursor, |
48 | struct wlr_surface **surface, double *sx, double *sy) { | 48 | struct wlr_surface **surface, double *sx, double *sy) { |
49 | // check for unmanaged views first | 49 | // check for unmanaged views first |
50 | struct wl_list *unmanaged = &root_container.sway_root->unmanaged_views; | 50 | struct wl_list *unmanaged = &root_container.sway_root->xwayland_unmanaged; |
51 | struct sway_view *view; | 51 | struct sway_xwayland_unmanaged *sway_surface; |
52 | wl_list_for_each_reverse(view, unmanaged, unmanaged_view_link) { | 52 | wl_list_for_each_reverse(sway_surface, unmanaged, link) { |
53 | if (view->type != SWAY_XWAYLAND_VIEW) { | 53 | struct wlr_xwayland_surface *xsurface = |
54 | sway_surface->wlr_xwayland_surface; | ||
55 | if (xsurface->surface == NULL) { | ||
54 | continue; | 56 | continue; |
55 | } | 57 | } |
56 | 58 | ||
57 | struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface; | ||
58 | struct wlr_box box = { | 59 | struct wlr_box box = { |
59 | .x = xsurface->x, | 60 | .x = xsurface->x, |
60 | .y = xsurface->y, | 61 | .y = xsurface->y, |