diff options
author | Ben Jargowsky <benjar63@gmail.com> | 2022-12-15 17:34:03 -0500 |
---|---|---|
committer | Leonardo Hernández <leohdz172@protonmail.com> | 2022-12-15 23:42:53 -0600 |
commit | a39a46c908011de913b142dbd1dd427eb7fbca0a (patch) | |
tree | 583f06f16393c885ec4e7f5cba06fc8b14ae752e | |
parent | 94c8bd604870365bc201524b63158623e6f32a8f (diff) |
Check width and height are not negative in client_set_bounds()
-rw-r--r-- | client.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |