mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-07-03 00:06:47 -04:00
fix: fix shield and blur node offset
This commit is contained in:
parent
88d32bdf8f
commit
5337405c31
2 changed files with 10 additions and 6 deletions
|
|
@ -366,6 +366,7 @@ void client_draw_title(Client *c) {
|
|||
void apply_shield(Client *c, struct wlr_box clip_box) {
|
||||
|
||||
if (clip_box.width <= 0 || clip_box.height <= 0) {
|
||||
wlr_scene_node_set_enabled(&c->shield->node, false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -887,6 +888,14 @@ void client_apply_clip(Client *c, float factor) {
|
|||
apply_shield(c, clip_box);
|
||||
|
||||
if (clip_box.width <= 0 || clip_box.height <= 0) {
|
||||
should_render_client_surface = false;
|
||||
wlr_scene_node_set_enabled(&c->scene_surface->node, false);
|
||||
} else {
|
||||
should_render_client_surface = true;
|
||||
wlr_scene_node_set_enabled(&c->scene_surface->node, true);
|
||||
}
|
||||
|
||||
if (!should_render_client_surface) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue