From: Andrew J. Hesford Date: Tue, 9 Jan 2024 01:12:45 +0000 (-0500) Subject: xwayland: only constrain initial size for unsized clients X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=6f72f4a368f91627357205d91ee995bf5f746f4f;p=proto%2Flabwc.git xwayland: only constrain initial size for unsized clients --- diff --git a/src/xwayland.c b/src/xwayland.c index b88daa87..2d86427f 100644 --- a/src/xwayland.c +++ b/src/xwayland.c @@ -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 {