clamp to parent height, not parent y co-ordinate.

Summary:
Clamping to Y makes pop ups get shifted up if a window is
near the top of the screen.

Reviewers: devilhorns, zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2060
This commit is contained in:
Derek Foreman 2015-02-26 15:27:52 -05:00 committed by Mike Blumenkrantz
parent dd2058d8a6
commit d576c58bd7
1 changed files with 1 additions and 1 deletions

View File

@ -1318,7 +1318,7 @@ _e_xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource
if (ec->parent)
{
cdata->popup.x = E_CLAMP(x, 0, ec->parent->client.w);
cdata->popup.y = E_CLAMP(y, 0, ec->parent->client.y);
cdata->popup.y = E_CLAMP(y, 0, ec->parent->client.h);
}
else
{