Add deco parts top, right and bottom

This commit is contained in:
Johan Malm 2020-05-30 21:28:17 +01:00
parent a6ac2a0439
commit c07acc9ee6
7 changed files with 104 additions and 22 deletions

View file

@ -207,10 +207,22 @@ struct view *view_at(struct server *server, double lx, double ly,
return view;
if (!view_want_deco(view))
continue;
if (deco_at(view, lx, ly) == LAB_DECO_PART_TITLE) {
*view_area = LAB_DECO_PART_TITLE;
return view;
}
if (deco_at(view, lx, ly) == LAB_DECO_PART_TOP) {
*view_area = LAB_DECO_PART_TOP;
return view;
}
if (deco_at(view, lx, ly) == LAB_DECO_PART_RIGHT) {
*view_area = LAB_DECO_PART_RIGHT;
return view;
}
if (deco_at(view, lx, ly) == LAB_DECO_PART_BOTTOM) {
*view_area = LAB_DECO_PART_BOTTOM;
return view;
}
if (deco_at(view, lx, ly) == LAB_DECO_PART_LEFT) {
*view_area = LAB_DECO_PART_LEFT;
return view;