rootston: Also iterate layer shell popups

Broken by 62fd03a7be

Closes: #1631
This commit is contained in:
Guido Günther 2019-03-24 13:35:49 +01:00 committed by Drew DeVault
parent 4281c8c566
commit b4f821ca31
1 changed files with 17 additions and 0 deletions

View File

@ -164,6 +164,23 @@ void output_layer_for_each_surface(struct roots_output *output,
output_surface_for_each_surface(output, wlr_layer_surface_v1->surface, output_surface_for_each_surface(output, wlr_layer_surface_v1->surface,
layer_surface->geo.x, layer_surface->geo.y, iterator, layer_surface->geo.x, layer_surface->geo.y, iterator,
user_data); user_data);
struct wlr_xdg_popup *state;
wl_list_for_each(state, &wlr_layer_surface_v1->popups, link) {
struct wlr_xdg_surface *popup = state->base;
if (!popup->configured) {
continue;
}
double popup_sx, popup_sy;
popup_sx = layer_surface->geo.x;
popup_sx += popup->popup->geometry.x - popup->geometry.x;
popup_sy = layer_surface->geo.y;
popup_sy += popup->popup->geometry.y - popup->geometry.y;
output_surface_for_each_surface(output, popup->surface,
popup_sx, popup_sy, iterator, user_data);
}
} }
} }