mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 11:46:31 +00:00
initialize to zero the box used in commitnotify()
This commit is contained in:
parent
28af37cd1f
commit
f173c56c32
1 changed files with 1 additions and 1 deletions
2
dwl.c
2
dwl.c
|
@ -793,7 +793,7 @@ void
|
||||||
commitnotify(struct wl_listener *listener, void *data)
|
commitnotify(struct wl_listener *listener, void *data)
|
||||||
{
|
{
|
||||||
Client *c = wl_container_of(listener, c, commit);
|
Client *c = wl_container_of(listener, c, commit);
|
||||||
struct wlr_box box;
|
struct wlr_box box = {0};
|
||||||
client_get_geometry(c, &box);
|
client_get_geometry(c, &box);
|
||||||
|
|
||||||
if (c->mon && !wlr_box_empty(&box) && (box.width != c->geom.width - 2 * c->bw
|
if (c->mon && !wlr_box_empty(&box) && (box.width != c->geom.width - 2 * c->bw
|
||||||
|
|
Loading…
Reference in a new issue