mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Adjust xdg-shell view position on first map
This commit is contained in:
parent
0eb64a29aa
commit
6e0d11bff5
5 changed files with 50 additions and 35 deletions
10
src/deco.c
10
src/deco.c
|
|
@ -29,26 +29,28 @@ struct wlr_box deco_box(struct view *view, enum deco_part deco_part)
|
|||
box.y = view->y - XWL_TITLEBAR_HEIGHT - XWL_WINDOW_BORDER;
|
||||
box.width =
|
||||
view->surface->current.width + 2 * XWL_WINDOW_BORDER;
|
||||
box.height = + XWL_WINDOW_BORDER;
|
||||
box.height = XWL_WINDOW_BORDER;
|
||||
break;
|
||||
case LAB_DECO_PART_RIGHT:
|
||||
box.x = view->x + view->surface->current.width;
|
||||
box.y = view->y - XWL_TITLEBAR_HEIGHT;
|
||||
box.width = XWL_WINDOW_BORDER;
|
||||
box.height = view->surface->current.height + XWL_TITLEBAR_HEIGHT;
|
||||
box.height =
|
||||
view->surface->current.height + XWL_TITLEBAR_HEIGHT;
|
||||
break;
|
||||
case LAB_DECO_PART_BOTTOM:
|
||||
box.x = view->x - XWL_WINDOW_BORDER;
|
||||
box.y = view->y + view->surface->current.height;
|
||||
box.width =
|
||||
view->surface->current.width + 2 * XWL_WINDOW_BORDER;
|
||||
box.height = + XWL_WINDOW_BORDER;
|
||||
box.height = +XWL_WINDOW_BORDER;
|
||||
break;
|
||||
case LAB_DECO_PART_LEFT:
|
||||
box.x = view->x - XWL_WINDOW_BORDER;
|
||||
box.y = view->y - XWL_TITLEBAR_HEIGHT;
|
||||
box.width = XWL_WINDOW_BORDER;
|
||||
box.height = view->surface->current.height + XWL_TITLEBAR_HEIGHT;
|
||||
box.height =
|
||||
view->surface->current.height + XWL_TITLEBAR_HEIGHT;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue