From 4f8dd3f1e59903a0cc177cb1072ce762bcd917b3 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 15 Jun 2016 16:39:08 -0500 Subject: [PATCH] Fix wl_shell clamping rules The current clamping logic clamps submenus so that they're contained within their parent instead of adjacent to them. --- src/modules/wl_desktop_shell/e_mod_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/wl_desktop_shell/e_mod_main.c b/src/modules/wl_desktop_shell/e_mod_main.c index 6c0a05e8f..2e59d7c4e 100644 --- a/src/modules/wl_desktop_shell/e_mod_main.c +++ b/src/modules/wl_desktop_shell/e_mod_main.c @@ -492,11 +492,11 @@ _e_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_Coor x = E_CLAMP(ec->parent->client.x + ec->comp_data->popup.x, ec->parent->client.x, ec->parent->client.x + - ec->parent->client.w - ec->client.w); + ec->parent->client.w); y = E_CLAMP(ec->parent->client.y + ec->comp_data->popup.y, ec->parent->client.y, ec->parent->client.y + - ec->parent->client.h - ec->client.h); + ec->parent->client.h); } }