aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-10-29 19:41:47 -0400
committerGitHub <noreply@github.com>2017-10-29 19:41:47 -0400
commit57efc3417f2131d643f8677093ec9b3e8301016e (patch)
tree7b6d579320c72c041e798b53509434acd5cbb334 /rootston
parent9a3c94b608663a4465ff528709d732699ac7af80 (diff)
parent34dcb083caa8975f258037c7813561b59d6b1210 (diff)
Merge pull request #356 from vially/fix-bounds-check
Fix resize bounds check in rootson
Diffstat (limited to 'rootston')
-rw-r--r--rootston/xdg_shell_v6.c4
1 files changed, 2 insertions, 2 deletions
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;
}