Merge pull request #1035 from martinetd/subsurface-root

wlr_surface_get_root_surface: walk up parent
master
emersion 7 years ago committed by GitHub
commit cb66569a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -956,7 +956,7 @@ struct wlr_surface *wlr_surface_get_root_surface(struct wlr_surface *surface) {
while (wlr_surface_is_subsurface(surface)) { while (wlr_surface_is_subsurface(surface)) {
struct wlr_subsurface *subsurface = struct wlr_subsurface *subsurface =
wlr_subsurface_from_surface(surface); wlr_subsurface_from_surface(surface);
surface = subsurface->surface; surface = subsurface->parent;
} }
return surface; return surface;
} }

Loading…
Cancel
Save