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
This commit is contained in:
Derek Foreman 2015-03-18 15:52:56 -04:00 committed by Mike Blumenkrantz
parent e330067acb
commit 1ed503281f
1 changed files with 2 additions and 0 deletions

View File

@ -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);