diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-05 22:53:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 22:53:21 -0400 |
commit | f63d9417cd4d25121fa1fd309acad14a7562a55c (patch) | |
tree | c46a070652793db69ec5d6c5258d0e6cf86c1231 /sway/input | |
parent | 268c68b41707a664e5059699c720f000f20e2276 (diff) | |
parent | 641807d920854fdecc1307bd809c198db1a7dff1 (diff) |
Merge pull request #1743 from emersion/subsurface-damage-tracking
Damage tracking for view children
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/cursor.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 195ddce9..b83bc9fe 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -48,17 +48,13 @@ 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->xwayland_unmanaged; - struct sway_xwayland_unmanaged *sway_surface; - wl_list_for_each_reverse(sway_surface, unmanaged, link) { + struct sway_xwayland_unmanaged *unmanaged_surface; + wl_list_for_each_reverse(unmanaged_surface, unmanaged, link) { struct wlr_xwayland_surface *xsurface = - sway_surface->wlr_xwayland_surface; - if (xsurface->surface == NULL) { - continue; - } - + unmanaged_surface->wlr_xwayland_surface; struct wlr_box box = { - .x = xsurface->x, - .y = xsurface->y, + .x = unmanaged_surface->lx, + .y = unmanaged_surface->ly, .width = xsurface->width, .height = xsurface->height, }; |