]> git.mdlowis.com Git - proto/labwc.git/commitdiff
xdg: don't always adjust the window size before configure
authortokyo4j <hrak1529@gmail.com>
Sat, 21 Sep 2024 07:16:35 +0000 (16:16 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 21 Sep 2024 17:08:29 +0000 (18:08 +0100)
This fixes the small flicker when the client initially submits a window
size smaller than the minimum value.

src/xdg.c

index b73ff84d03ffcd9c65c7bb59b8c7cb21930f0f7b..aefc0a336d6663134a191df40b07367cae944835 100644 (file)
--- a/src/xdg.c
+++ b/src/xdg.c
@@ -396,15 +396,6 @@ xdg_toplevel_view_configure(struct view *view, struct wlr_box geo)
 {
        uint32_t serial = 0;
 
-       /*
-        * Leave a size of 0x0 unchanged; this has special meaning in
-        * an xdg-toplevel configure event and requests the application
-        * to choose its own preferred size.
-        */
-       if (!wlr_box_empty(&geo)) {
-               view_adjust_size(view, &geo.width, &geo.height);
-       }
-
        /*
         * We do not need to send a configure request unless the size
         * changed (wayland has no notion of a global position). If the