mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-24 21:37:30 -04:00
opt: force apply buffer size to main surface in ov scale
This commit is contained in:
parent
72a7c96f98
commit
da1e1cadf7
1 changed files with 4 additions and 1 deletions
|
|
@ -261,8 +261,11 @@ void scene_buffer_apply_overview_effect(struct wlr_scene_buffer *buffer,
|
||||||
surface_height = surface_height * buffer_data->height_scale;
|
surface_height = surface_height * buffer_data->height_scale;
|
||||||
surface_width = surface_width * buffer_data->width_scale;
|
surface_width = surface_width * buffer_data->width_scale;
|
||||||
|
|
||||||
if (buffer_data->width > 0 && buffer_data->height > 0) {
|
if (is_subsurface && surface_width > 0 && surface_height > 0) {
|
||||||
wlr_scene_buffer_set_dest_size(buffer, surface_width, surface_height);
|
wlr_scene_buffer_set_dest_size(buffer, surface_width, surface_height);
|
||||||
|
} else if (buffer_data->height > 0 && buffer_data->width > 0) {
|
||||||
|
wlr_scene_buffer_set_dest_size(buffer, buffer_data->width,
|
||||||
|
buffer_data->height);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_subsurface)
|
if (is_subsurface)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue