mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-28 21:37:28 -04:00
fix: fix ov scale when disable animaiton
This commit is contained in:
parent
da1e1cadf7
commit
33735a796f
1 changed files with 2 additions and 5 deletions
|
|
@ -243,9 +243,6 @@ void scene_buffer_apply_overview_effect(struct wlr_scene_buffer *buffer,
|
||||||
int32_t sx, int32_t sy, void *data) {
|
int32_t sx, int32_t sy, void *data) {
|
||||||
BufferData *buffer_data = (BufferData *)data;
|
BufferData *buffer_data = (BufferData *)data;
|
||||||
|
|
||||||
if (buffer_data->width_scale >= 1.0 || buffer_data->height_scale >= 1.0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
int32_t surface_width = 0;
|
int32_t surface_width = 0;
|
||||||
int32_t surface_height = 0;
|
int32_t surface_height = 0;
|
||||||
bool is_subsurface = false;
|
bool is_subsurface = false;
|
||||||
|
|
@ -825,7 +822,7 @@ void client_apply_clip(Client *c, float factor) {
|
||||||
enum corner_location current_corner_location =
|
enum corner_location current_corner_location =
|
||||||
set_client_corner_location(c);
|
set_client_corner_location(c);
|
||||||
|
|
||||||
if (!config.animations) {
|
if (!config.animations && !c->mon->isoverview) {
|
||||||
c->animation.running = false;
|
c->animation.running = false;
|
||||||
c->need_output_flush = false;
|
c->need_output_flush = false;
|
||||||
c->animainit_geom = c->current = c->pending = c->animation.current =
|
c->animainit_geom = c->current = c->pending = c->animation.current =
|
||||||
|
|
@ -910,7 +907,7 @@ void client_apply_clip(Client *c, float factor) {
|
||||||
buffer_data.height = clip_box.height;
|
buffer_data.height = clip_box.height;
|
||||||
buffer_data.corner_location = current_corner_location;
|
buffer_data.corner_location = current_corner_location;
|
||||||
|
|
||||||
if (factor == 1.0) {
|
if (factor == 1.0 && !c->mon->isoverview) {
|
||||||
buffer_data.width_scale = 1.0;
|
buffer_data.width_scale = 1.0;
|
||||||
buffer_data.height_scale = 1.0;
|
buffer_data.height_scale = 1.0;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue