From 34dcb083caa8975f258037c7813561b59d6b1210 Mon Sep 17 00:00:00 2001 From: Valentin Hăloiu Date: Mon, 30 Oct 2017 00:12:17 +0100 Subject: Fix resize bounds check in rootson --- rootston/xdg_shell_v6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rootston') diff --git a/rootston/xdg_shell_v6.c b/rootston/xdg_shell_v6.c index 4f284851..704ccb1e 100644 --- a/rootston/xdg_shell_v6.c +++ b/rootston/xdg_shell_v6.c @@ -34,13 +34,13 @@ static void resize(struct roots_view *view, uint32_t width, uint32_t height) { if (width < state->min_width) { width = state->min_width; } else if (state->max_width > 0 && - width < state->max_width) { + width > state->max_width) { width = state->max_width; } if (height < state->min_height) { height = state->min_height; } else if (state->max_height > 0 && - height < state->max_height) { + height > state->max_height) { height = state->max_height; } -- cgit v1.2.3