diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-07-08 20:08:45 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-11-14 19:44:43 -0600 |
commit | e1f3983bf8a548f0357a92d9023c90aa4c273f64 (patch) | |
tree | be4f8fd93ac5a5f30013bc7cda1bd088652749ab /dwl.c | |
parent | 31bf1cbaf6418a6fb39e41b21cadc5c20826a663 (diff) |
use wlr_scene_subsurface_tree_set_clip
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4131
Closes: https://github.com/djpohly/dwl/issues/411
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1909,6 +1909,7 @@ void resize(Client *c, struct wlr_box geo, int interact) { struct wlr_box *bbox = interact ? &sgeom : &c->mon->w; + struct wlr_box clip; client_set_bounds(c, geo.width, geo.height); c->geom = geo; applybounds(c, bbox); @@ -1927,6 +1928,8 @@ resize(Client *c, struct wlr_box geo, int interact) /* this is a no-op if size hasn't changed */ c->resize = client_set_size(c, c->geom.width - 2 * c->bw, c->geom.height - 2 * c->bw); + client_get_clip(c, &clip); + wlr_scene_subsurface_tree_set_clip(&c->scene_surface->node, &clip); } void |