mirror of
https://github.com/labwc/labwc.git
synced 2026-02-25 01:40:28 -05:00
view: constrain window size to that of usable area
...on first map (when application is started). Fixes #1399
This commit is contained in:
parent
bce0c6ce56
commit
c646c7bd1b
4 changed files with 24 additions and 0 deletions
|
|
@ -420,6 +420,8 @@ position_xdg_toplevel_view(struct view *view)
|
|||
struct wlr_xdg_toplevel *parent_xdg_toplevel =
|
||||
xdg_toplevel_from_view(view)->parent;
|
||||
|
||||
view_constrain_size_to_that_of_usable_area(view);
|
||||
|
||||
if (parent_xdg_toplevel) {
|
||||
/* Child views are center-aligned relative to their parents */
|
||||
struct view *parent = lookup_view_by_xdg_toplevel(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue