aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2024-08-14 13:14:15 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2024-08-27 23:09:46 -0600
commitcc72df11d690346ed1924593d283a7453986deab (patch)
treea08941d2ee9d5504697a0c93c91c2ae7fef063e1
parent0312720ae8599904e847eed377cc5ee222905835 (diff)
downloaddwl-cc72df11d690346ed1924593d283a7453986deab.tar.gz
configure xdg_toplevels after configuring it's decoration
-rw-r--r--dwl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 85e7f36..dd9bd7d 100644
--- a/dwl.c
+++ b/dwl.c
@@ -802,10 +802,11 @@ commitnotify(struct wl_listener *listener, void *data)
}
setmon(c, NULL, 0); /* Make sure to reapply rules in mapnotify() */
- wlr_xdg_toplevel_set_wm_capabilities(c->surface.xdg->toplevel, WLR_XDG_TOPLEVEL_WM_CAPABILITIES_FULLSCREEN);
- wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, 0, 0);
+ wlr_xdg_toplevel_set_wm_capabilities(c->surface.xdg->toplevel,
+ WLR_XDG_TOPLEVEL_WM_CAPABILITIES_FULLSCREEN);
if (c->decoration)
requestdecorationmode(&c->set_decoration_mode, c->decoration);
+ wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, 0, 0);
return;
}