mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
send initial configure to xdg-toplevels (wlroots!4396)
We still need to fix xdg-popups References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4396
This commit is contained in:
parent
8e0b5baf8e
commit
c215e8a3e1
1 changed files with 4 additions and 1 deletions
5
dwl.c
5
dwl.c
|
@ -756,8 +756,11 @@ commitnotify(struct wl_listener *listener, void *data)
|
||||||
{
|
{
|
||||||
Client *c = wl_container_of(listener, c, commit);
|
Client *c = wl_container_of(listener, c, commit);
|
||||||
|
|
||||||
if (c->surface.xdg->initial_commit)
|
if (c->surface.xdg->initial_commit) {
|
||||||
wlr_xdg_toplevel_set_wm_capabilities(c->surface.xdg->toplevel, WLR_XDG_TOPLEVEL_WM_CAPABILITIES_FULLSCREEN);
|
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);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (client_surface(c)->mapped && c->mon)
|
if (client_surface(c)->mapped && c->mon)
|
||||||
resize(c, c->geom, (c->isfloating && !c->isfullscreen));
|
resize(c, c->geom, (c->isfloating && !c->isfullscreen));
|
||||||
|
|
Loading…
Reference in a new issue