mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
xwayland: only constrain initial size for unsized clients
This commit is contained in:
parent
313a80f6aa
commit
6f72f4a368
1 changed files with 2 additions and 2 deletions
|
|
@ -505,8 +505,6 @@ set_initial_position(struct view *view,
|
||||||
XCB_ICCCM_SIZE_HINT_US_POSITION |
|
XCB_ICCCM_SIZE_HINT_US_POSITION |
|
||||||
XCB_ICCCM_SIZE_HINT_P_POSITION));
|
XCB_ICCCM_SIZE_HINT_P_POSITION));
|
||||||
|
|
||||||
view_constrain_size_to_that_of_usable_area(view);
|
|
||||||
|
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
/*
|
/*
|
||||||
* Make sure a floating view is onscreen. For a
|
* Make sure a floating view is onscreen. For a
|
||||||
|
|
@ -518,6 +516,8 @@ set_initial_position(struct view *view,
|
||||||
view_adjust_for_layout_change(view);
|
view_adjust_for_layout_change(view);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
view_constrain_size_to_that_of_usable_area(view);
|
||||||
|
|
||||||
if (view_is_floating(view)) {
|
if (view_is_floating(view)) {
|
||||||
view_place_initial(view);
|
view_place_initial(view);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue