]> git.mdlowis.com Git - proto/labwc.git/commitdiff
xwayland: only constrain initial size for unsized clients
authorAndrew J. Hesford <ajh@sideband.org>
Tue, 9 Jan 2024 01:12:45 +0000 (20:12 -0500)
committerAndrew J. Hesford <ajh@sideband.org>
Tue, 9 Jan 2024 01:13:08 +0000 (20:13 -0500)
src/xwayland.c

index b88daa8709fd15993eeb4a08bf0112d827e1a1f7..2d86427f6023676b81046a969e37cc008185f96b 100644 (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 {