summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-08-13 00:07:11 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-08-13 00:12:46 -0500
commitf173c56c320a57e76a6bee578c3b9365f3a83950 (patch)
tree06fb60d28183368653bfc55b1af2e5d4d0a474d7
parent28af37cd1f6dce140df8e99659d0af07dc1d9985 (diff)
initialize to zero the box used in commitnotify()
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 5031e0a..0431119 100644
--- a/dwl.c
+++ b/dwl.c
@@ -793,7 +793,7 @@ void
commitnotify(struct wl_listener *listener, void *data)
{
Client *c = wl_container_of(listener, c, commit);
- struct wlr_box box;
+ struct wlr_box box = {0};
client_get_geometry(c, &box);
if (c->mon && !wlr_box_empty(&box) && (box.width != c->geom.width - 2 * c->bw