mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-24 09:06:31 -04:00
opt: make surface node as shield parent node
This commit is contained in:
parent
b400fd5aad
commit
593084b036
2 changed files with 3 additions and 4 deletions
|
|
@ -353,8 +353,7 @@ void client_draw_shadow(Client *c) {
|
|||
void apply_shield(Client *c, struct wlr_box clip_box) {
|
||||
if (active_capture_count > 0 && c->shield_when_capture) {
|
||||
wlr_scene_node_raise_to_top(&c->shield->node);
|
||||
wlr_scene_node_set_position(&c->shield->node, clip_box.x + c->bw,
|
||||
clip_box.y + c->bw);
|
||||
wlr_scene_node_set_position(&c->shield->node, clip_box.x, clip_box.y);
|
||||
wlr_scene_rect_set_size(c->shield, clip_box.width, clip_box.height);
|
||||
wlr_scene_node_set_enabled(&c->shield->node, true);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue