mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
osd: position preview border within SSD max extents
This makes the border visible when alt-tabbing maximized windows and prevents it from rendering on other outputs or on top of exclusive layer-surfaces such as panels. Closes issue #496
This commit is contained in:
parent
b7c4ba825a
commit
8a7048fd78
1 changed files with 3 additions and 6 deletions
|
|
@ -100,13 +100,10 @@ osd_update_preview_outlines(struct view *view)
|
||||||
wlr_scene_node_place_above(&rect->tree->node, &server->menu_tree->node);
|
wlr_scene_node_place_above(&rect->tree->node, &server->menu_tree->node);
|
||||||
server->osd_preview_outline = rect;
|
server->osd_preview_outline = rect;
|
||||||
}
|
}
|
||||||
/* A multi_rect consists of 3 layered rects */
|
|
||||||
int line_width = rect->line_width * 3;
|
|
||||||
struct wlr_box geo = ssd_max_extents(view);
|
struct wlr_box geo = ssd_max_extents(view);
|
||||||
multi_rect_set_size(rect,
|
multi_rect_set_size(rect, geo.width, geo.height);
|
||||||
geo.width + line_width * 2, geo.height + line_width * 2);
|
wlr_scene_node_set_position(&rect->tree->node, geo.x, geo.y);
|
||||||
wlr_scene_node_set_position(&rect->tree->node,
|
|
||||||
geo.x - line_width, geo.y - line_width);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue