From 1ed503281f2eee310184675e0541d6c718bb04d2 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 18 Mar 2015 15:52:56 -0400 Subject: [PATCH] wayland-compositor: Clamp to 1, 1 on drag resize Summary: Apparently negative values mean "pick a size", though this is undocumented. Reviewers: devilhorns, zmike Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2191 --- src/bin/e_comp_wl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 63fd4ad13..ef8e57a48 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -569,6 +569,8 @@ _e_comp_wl_evas_cb_resize(void *data, Evas_Object *obj EINA_UNUSED, void *event default: y -= ay; } + x = E_CLAMP(x, 1, x); + y = E_CLAMP(y, 1, y); ec->comp_data->shell.configure_send(ec->comp_data->shell.surface, e_comp->wl_comp_data->resize.edges, x, y);