]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/interactive.c: don't unshade when view is un-tiled by dragging
authortokyo4j <hrak1529@gmail.com>
Wed, 7 Aug 2024 03:45:23 +0000 (12:45 +0900)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 26 Aug 2024 18:30:22 +0000 (20:30 +0200)
Unshading a maximized/tiled window at the start of interactive move
doesn't seem to be useful and caused flicker.

src/interactive.c

index 13392b061f2bb25aa507f7c2c162a6d2aab3bfc7..570d80fc6f05b72307587985259b823ac4bfc9d4 100644 (file)
@@ -56,7 +56,6 @@ interactive_move_tiled_view_to(struct server *server, struct view *view,
                }
        }
 
-       view_set_shade(view, false);
        view_set_untiled(view);
        view_restore_to(view, *geometry);
        server->move_pending = false;
@@ -100,11 +99,7 @@ interactive_begin(struct view *view, enum input_mode mode, uint32_t edges)
                }
                if (!view_is_floating(view)) {
                        /*
-                        * Un-maximize, unshade and restore natural
-                        * width/height.
-                        * Don't reset tiled state yet since we may want
-                        * to keep it (in the snap-to-maximize case).
-                        *
+                        * Un-maximize and restore natural width/height.
                         * If the natural geometry is unknown (possible
                         * with xdg-shell views), then we set a size of
                         * 0x0 here and determine the correct geometry