forked from enlightenment/enlightenment
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:
parent
2463ce8b43
commit
4f8dd3f1e5
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue