summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-06-15 16:39:08 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-06-15 16:39:08 -0500
commit4f8dd3f1e59903a0cc177cb1072ce762bcd917b3 (patch)
tree9c02eb62ff99ffadc464dfde2b2ca57894dcb900
parent2463ce8b4349199102bc3f7281ff8c3400732d5a (diff)
downloadenlightenment-4f8dd3f1e59903a0cc177cb1072ce762bcd917b3.tar.gz
Fix wl_shell clamping rules
The current clamping logic clamps submenus so that they're contained within their parent instead of adjacent to them.
-rw-r--r--src/modules/wl_desktop_shell/e_mod_main.c4
1 files 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 6c0a05e8fa..2e59d7c4e2 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);
}
}