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:
parent
dd2058d8a6
commit
d576c58bd7
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue