From a39a46c908011de913b142dbd1dd427eb7fbca0a Mon Sep 17 00:00:00 2001 From: Ben Jargowsky Date: Thu, 15 Dec 2022 17:34:03 -0500 Subject: [PATCH] Check width and height are not negative in client_set_bounds() --- client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.h b/client.h index dbf018f..06c2073 100644 --- a/client.h +++ b/client.h @@ -141,7 +141,7 @@ client_set_bounds(Client *c, int32_t width, int32_t height) return 0; #endif if (c->surface.xdg->client->shell->version >= - XDG_TOPLEVEL_CONFIGURE_BOUNDS_SINCE_VERSION) + XDG_TOPLEVEL_CONFIGURE_BOUNDS_SINCE_VERSION && width >= 0 && height >= 0) return wlr_xdg_toplevel_set_bounds(c->surface.xdg->toplevel, width, height); return 0; }