mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-23 05:35:53 -04: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;
|
return;
|
||||||
|
|
||||||
if (!shadows || (!c->isfloating && shadow_only_floating)) {
|
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;
|
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);
|
bool hit_no_border = check_hit_no_border(c);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue