mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 02:19:49 +01:00
rootston: Also iterate layer shell popups
Broken by 62fd03a7be
Closes: #1631
This commit is contained in:
parent
4281c8c566
commit
b4f821ca31
1 changed files with 17 additions and 0 deletions
|
@ -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,
|
||||
layer_surface->geo.x, layer_surface->geo.y, iterator,
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue