mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Add deco parts top, right and bottom
This commit is contained in:
parent
a6ac2a0439
commit
c07acc9ee6
7 changed files with 104 additions and 22 deletions
12
src/view.c
12
src/view.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue