Fix wl_shell clamping rules

The current clamping logic clamps submenus so that they're contained
within their parent instead of adjacent to them.
This commit is contained in:
Derek Foreman 2016-06-15 16:39:08 -05:00
parent 2463ce8b43
commit 4f8dd3f1e5
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}