aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2021-05-23 18:24:24 -0500
committerGitHub <noreply@github.com>2021-05-23 18:24:24 -0500
commit56d93898ea91ef687d855f2f99d9803480f355e0 (patch)
tree5d164b11cf828d6c3ceeecb97f413a061b7a698e /dwl.c
parentce9f264919e0212fa64b843314cd9449e366d2f1 (diff)
parent9ab5e01d5b3864f151c222d001a8a2152f29b518 (diff)
Merge pull request #122 from Sevz17/set-tiled-on-map
before set tiled verify if client is xdg-shell, then set tile
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index 30a64f8..3a562b9 100644
--- 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);