mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
xwayland: constrain view to top/left edge
This commit is contained in:
parent
35ff6e5bb0
commit
b46fa5e006
4 changed files with 31 additions and 15 deletions
|
|
@ -149,7 +149,7 @@ static void xdg_toplevel_view_map(struct view *view)
|
|||
if (!view->been_mapped) {
|
||||
view->server_side_deco = has_ssd(view);
|
||||
if (view->server_side_deco) {
|
||||
view->margin = deco_max_extents(view);
|
||||
view->margin = deco_thickness(view);
|
||||
} else {
|
||||
view->margin = xdg_shell_border(view);
|
||||
view->xdg_grab_offset = -view->margin.left;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue