mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-15 22:05:20 -05:00
opt: optimize shadow node and blur node enable
This commit is contained in:
parent
5774df00e0
commit
6010cea805
1 changed files with 5 additions and 1 deletions
|
|
@ -255,8 +255,12 @@ void client_draw_shadow(Client *c) {
|
|||
return;
|
||||
|
||||
if (!shadows || (!c->isfloating && shadow_only_floating)) {
|
||||
wlr_scene_shadow_set_size(c->shadow, 0, 0);
|
||||
if (c->shadow->node.enabled)
|
||||
wlr_scene_node_set_enabled(&c->shadow->node, false);
|
||||
return;
|
||||
} else {
|
||||
if (c->scene_surface->node.enabled && !c->shadow->node.enabled)
|
||||
wlr_scene_node_set_enabled(&c->shadow->node, true);
|
||||
}
|
||||
|
||||
bool hit_no_border = check_hit_no_border(c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue