mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
wl-shell: cleanup
This commit is contained in:
parent
1b2742d0b2
commit
f7e7f6271d
4 changed files with 98 additions and 106 deletions
|
|
@ -103,11 +103,11 @@ static void render_wl_shell_surface(struct wlr_wl_shell_surface *surface, struct
|
|||
if (is_child || surface->state != WLR_WL_SHELL_SURFACE_STATE_POPUP) {
|
||||
render_surface(surface->surface, desktop, wlr_output, when,
|
||||
lx, ly, rotation);
|
||||
struct wlr_wl_shell_surface *child;
|
||||
wl_list_for_each(child, &surface->children, child_link) {
|
||||
render_wl_shell_surface(child, desktop, wlr_output, when,
|
||||
lx + child->transient_state->x,
|
||||
ly + child->transient_state->y,
|
||||
struct wlr_wl_shell_surface *popup;
|
||||
wl_list_for_each(popup, &surface->popups, popup_link) {
|
||||
render_wl_shell_surface(popup, desktop, wlr_output, when,
|
||||
lx + popup->transient_state->x,
|
||||
ly + popup->transient_state->y,
|
||||
rotation, true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue