dwl

My patch set and modifications to dwl
git clone git://git.ethandl.dev/dwl
Log | Files | Refs | README | LICENSE

commit 9ab5e01d5b3864f151c222d001a8a2152f29b518
parent 93a58abf2955aa01b7c148b85490d443ab017fb7
Author: Sevz17 <leohdz172@outlook.com>
Date:   Sun, 23 May 2021 11:24:32 -0500

before set tiled verify if client is xdg-shell, then set tile

Diffstat:
Mdwl.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/dwl.c b/dwl.c @@ -1304,9 +1304,17 @@ mapnotify(struct wl_listener *listener, void *data) c->geom.width += 2 * c->bw; c->geom.height += 2 * c->bw; +#ifdef XWAYLAND + if (c->type == XDGShell) { + /* Tell the client not to try anything fancy */ + wlr_xdg_toplevel_set_tiled(c->surface.xdg, WLR_EDGE_TOP | + WLR_EDGE_BOTTOM | WLR_EDGE_LEFT | WLR_EDGE_RIGHT); + } +#else /* Tell the client not to try anything fancy */ wlr_xdg_toplevel_set_tiled(c->surface.xdg, WLR_EDGE_TOP | WLR_EDGE_BOTTOM | WLR_EDGE_LEFT | WLR_EDGE_RIGHT); +#endif /* Set initial monitor, tags, floating status, and focus */ applyrules(c);