mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-19 14:33:16 -04:00
fix: error clip box set for grabc client
Some checks are pending
Generate Nix Options Docs / update-docs (push) Waiting to run
Some checks are pending
Generate Nix Options Docs / update-docs (push) Waiting to run
This commit is contained in:
parent
3ab6e45220
commit
1ea7f88844
1 changed files with 4 additions and 7 deletions
|
|
@ -1337,7 +1337,7 @@ void resize(Client *c, struct wlr_box geo, int32_t interact) {
|
|||
return;
|
||||
|
||||
struct wlr_box *bbox;
|
||||
struct wlr_box clip_box;
|
||||
struct wlr_box clip;
|
||||
|
||||
if (!c->mon)
|
||||
return;
|
||||
|
|
@ -1428,14 +1428,11 @@ void resize(Client *c, struct wlr_box geo, int32_t interact) {
|
|||
c->geom;
|
||||
wlr_scene_node_set_position(&c->scene->node, c->geom.x, c->geom.y);
|
||||
|
||||
struct ivec2 offset = clip_to_hide(c, &clip_box);
|
||||
|
||||
apply_border(c);
|
||||
client_get_clip(c, &clip_box);
|
||||
apply_shield(c, clip_box);
|
||||
client_get_clip(c, &clip);
|
||||
apply_shield(c, clip);
|
||||
client_draw_shadow(c);
|
||||
client_draw_blur(c, clip_box, offset);
|
||||
wlr_scene_subsurface_tree_set_clip(&c->scene_surface->node, &clip_box);
|
||||
wlr_scene_subsurface_tree_set_clip(&c->scene_surface->node, &clip);
|
||||
if (config.blur && !c->noblur)
|
||||
wlr_scene_blur_set_size(c->blur,
|
||||
c->animation.current.width - 2 * c->bw,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue