From d576c58bd7007debaf0eb15ef6c67fbab84da0f6 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Thu, 26 Feb 2015 15:27:52 -0500 Subject: [PATCH] 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 --- src/modules/wl_desktop_shell/e_mod_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/wl_desktop_shell/e_mod_main.c b/src/modules/wl_desktop_shell/e_mod_main.c index 4ac59c09e..a70267a48 100644 --- a/src/modules/wl_desktop_shell/e_mod_main.c +++ b/src/modules/wl_desktop_shell/e_mod_main.c @@ -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 {