mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
send xdg_decoration configure right after create
Thanks to @cedws for pointing this out!
This commit is contained in:
parent
2598100d53
commit
8c0afa7c73
1 changed files with 3 additions and 2 deletions
5
dwl.c
5
dwl.c
|
@ -500,13 +500,14 @@ void
|
|||
createxdeco(struct wl_listener *listener, void *data)
|
||||
{
|
||||
struct wlr_xdg_toplevel_decoration_v1 *wlr_deco = data;
|
||||
Decoration *d;
|
||||
Decoration *d = wlr_deco->data = calloc(1, sizeof(*d));
|
||||
|
||||
d = wlr_deco->data = calloc(1, sizeof(*d));
|
||||
wl_signal_add(&wlr_deco->events.request_mode, &d->request_mode);
|
||||
d->request_mode.notify = getxdecomode;
|
||||
wl_signal_add(&wlr_deco->events.destroy, &d->destroy);
|
||||
d->destroy.notify = destroyxdeco;
|
||||
|
||||
getxdecomode(&d->request_mode, wlr_deco);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue