]> git.mdlowis.com Git - proto/labwc.git/commitdiff
config: increase default <snapping><range> to 10
authorJohan Malm <jgm323@gmail.com>
Tue, 4 Mar 2025 21:14:41 +0000 (21:14 +0000)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Sat, 8 Mar 2025 13:36:53 +0000 (22:36 +0900)
...to make it easier to snap windows on the edge between two monitors.

Fixes: #2602
docs/labwc-config.5.scd
docs/rc.xml.all
src/config/rcxml.c

index d0700ac70ad80d0df6efa647c5ea85e8c75658c3..0042aa8d4b83895e9842a374b9c53476b8718da4 100644 (file)
@@ -409,7 +409,7 @@ extending outward from the snapped edge.
        If an interactive move ends with the cursor a maximum distance *range*,
        (in pixels) from the edge of an output, the move will trigger a
        SnapToEdge action for that edge. A *range* of 0 disables snapping via
-       interactive moves. Default is 1.
+       interactive moves. Default is 10.
 
 *<snapping><overlay><enabled>* [yes|no]
        Show an overlay when snapping to a window to an edge. Default is yes.
index dd58c71edfca22404be26062a86ff50022370b1f..8dea2ec33d45bd1c33c37b7d9e597f19a54f1e87 100644 (file)
 
   <snapping>
     <!-- Set range to 0 to disable window snapping completely -->
-    <range>1</range>
+    <range>10</range>
     <overlay enabled="yes">
       <delay inner="500" outer="500" />
     </overlay>
index a3b3ee3a1bf64bc3b9cc0ecc3eb3ee47b116c54a..f8e6dc9bebd762e48ce1991259a694afd9c2ac32 100644 (file)
@@ -1486,7 +1486,7 @@ rcxml_init(void)
        rc.unsnap_threshold = 20;
        rc.unmaximize_threshold = 150;
 
-       rc.snap_edge_range = 1;
+       rc.snap_edge_range = 10;
        rc.snap_overlay_enabled = true;
        rc.snap_overlay_delay_inner = 500;
        rc.snap_overlay_delay_outer = 500;