aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-06-04 16:30:09 +0100
committerGitHub <noreply@github.com>2018-06-04 16:30:09 +0100
commitcb66569a5840139c526dde0a5fbffc3a4982ebb2 (patch)
tree9f421c9773e37d604ac4067cbbb70462519b59ba
parentf11ef263797541898dd359789a4a695a4a7225ce (diff)
parentcf9b8c0a8ccc4a91473551ea37345ceffe4fd1a3 (diff)
Merge pull request #1035 from martinetd/subsurface-root
wlr_surface_get_root_surface: walk up parent
-rw-r--r--types/wlr_surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_surface.c b/types/wlr_surface.c
index 22026af8..46a39a39 100644
--- a/types/wlr_surface.c
+++ b/types/wlr_surface.c
@@ -956,7 +956,7 @@ struct wlr_surface *wlr_surface_get_root_surface(struct wlr_surface *surface) {
while (wlr_surface_is_subsurface(surface)) {
struct wlr_subsurface *subsurface =
wlr_subsurface_from_surface(surface);
- surface = subsurface->surface;
+ surface = subsurface->parent;
}
return surface;
}