xwayland: only constrain initial size for unsized clients

This commit is contained in:
Andrew J. Hesford 2024-01-08 20:12:45 -05:00
parent 313a80f6aa
commit 6f72f4a368

View file

@ -505,8 +505,6 @@ set_initial_position(struct view *view,
XCB_ICCCM_SIZE_HINT_US_POSITION |
XCB_ICCCM_SIZE_HINT_P_POSITION));
view_constrain_size_to_that_of_usable_area(view);
if (has_position) {
/*
* 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);
}
} else {
view_constrain_size_to_that_of_usable_area(view);
if (view_is_floating(view)) {
view_place_initial(view);
} else {