mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
Handle request_set_selection
This commit is contained in:
parent
48e47fe8f9
commit
9597aeffec
4 changed files with 31 additions and 20 deletions
8
deco.c
8
deco.c
|
|
@ -16,14 +16,17 @@ struct wlr_box deco_box(struct view *view, enum deco_part deco_part)
|
|||
{
|
||||
struct wlr_box box = { .x = 0, .y = 0, .width = 0, .height = 0 };
|
||||
if (!view)
|
||||
return;
|
||||
return box;
|
||||
switch (deco_part) {
|
||||
case LAB_DECO_PART_TOP:
|
||||
box.x = view->x - XWL_WINDOW_BORDER;
|
||||
box.y = view->y - XWL_TITLEBAR_HEIGHT - XWL_WINDOW_BORDER;
|
||||
box.width = view->surface->current.width + 2 * XWL_WINDOW_BORDER;
|
||||
box.width =
|
||||
view->surface->current.width + 2 * XWL_WINDOW_BORDER;
|
||||
box.height = XWL_TITLEBAR_HEIGHT + XWL_WINDOW_BORDER;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return box;
|
||||
}
|
||||
|
|
@ -36,4 +39,3 @@ enum deco_part deco_at(struct view *view, double lx, double ly)
|
|||
return LAB_DECO_PART_TOP;
|
||||
return LAB_DECO_NONE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue