mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-25 06:59:42 -05:00
decorate xwayland views
This commit is contained in:
parent
dc701b72fc
commit
3751a17321
5 changed files with 47 additions and 1 deletions
|
|
@ -31,6 +31,18 @@ void view_get_box(const struct roots_view *view, struct wlr_box *box) {
|
|||
}
|
||||
}
|
||||
|
||||
void view_get_deco_box(const struct roots_view *view, struct wlr_box *box) {
|
||||
view_get_box(view, box);
|
||||
if (!view->decorated) {
|
||||
return;
|
||||
}
|
||||
|
||||
box->x -= view->border_width;
|
||||
box->y -= (view->border_width + view->titlebar_height);
|
||||
box->width += view->border_width * 2;
|
||||
box->height += (view->border_width * 2 + view->titlebar_height);
|
||||
}
|
||||
|
||||
static void view_update_output(const struct roots_view *view,
|
||||
const struct wlr_box *before) {
|
||||
struct roots_desktop *desktop = view->desktop;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue