mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
fix: error surface clip size when no animaitons
This commit is contained in:
parent
1b97dd533e
commit
7ded90021b
1 changed files with 2 additions and 2 deletions
|
|
@ -1283,8 +1283,8 @@ void client_apply_clip(Client *c) {
|
|||
client_draw_shadow(c);
|
||||
|
||||
surface_clip = clip_box;
|
||||
surface_clip.width = surface_clip.width - 2 * c->bw;
|
||||
surface_clip.height = surface_clip.height - 2 * c->bw;
|
||||
surface_clip.width = surface_clip.width - c->bw;
|
||||
surface_clip.height = surface_clip.height - c->bw;
|
||||
|
||||
if (surface_clip.width <= 0 || surface_clip.height <= 0) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue