forked from enlightenment/enlightenment
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:
parent
e330067acb
commit
1ed503281f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue