mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 02:19:49 +01:00
layer-shell: use output_damage_{whole,from}_local_surface on map/unmap
These handle rotation and scaling
This commit is contained in:
parent
c4dff67e00
commit
24fa07565d
1 changed files with 4 additions and 2 deletions
|
@ -255,7 +255,8 @@ static void unmap(struct wlr_layer_surface *layer_surface) {
|
|||
struct wlr_output *wlr_output = layer_surface->output;
|
||||
if (wlr_output != NULL) {
|
||||
struct roots_output *output = wlr_output->data;
|
||||
wlr_output_damage_add_box(output->damage, &layer->geo);
|
||||
output_damage_whole_local_surface(output, layer_surface->surface,
|
||||
layer->geo.x, layer->geo.y, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -282,7 +283,8 @@ static void handle_map(struct wl_listener *listener, void *data) {
|
|||
struct roots_layer_surface *layer = layer_surface->data;
|
||||
struct wlr_output *wlr_output = layer_surface->output;
|
||||
struct roots_output *output = wlr_output->data;
|
||||
wlr_output_damage_add_box(output->damage, &layer->geo);
|
||||
output_damage_whole_local_surface(output, layer_surface->surface,
|
||||
layer->geo.x, layer->geo.y, 0);
|
||||
wlr_surface_send_enter(layer_surface->surface, wlr_output);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue