]> git.mdlowis.com Git - proto/labwc.git/commitdiff
resistance: update documentation + default strength value
authorARDiDo <90479315+ARDiDo@users.noreply.github.com>
Mon, 25 Oct 2021 21:04:22 +0000 (17:04 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 26 Oct 2021 20:15:13 +0000 (21:15 +0100)
docs/labwc-config.5.scd
docs/rc.xml.all
src/config/rcxml.c

index 57f34959ebc881dfa6ca44bbf1fde7ff49ad5082..17fc055baa86e5fed737d394ad773a37141bfdc0 100644 (file)
@@ -155,6 +155,15 @@ Configuration must be wrapped in a <labwc_config> root-node.
        any motion events while a keyboard is typing, and for a short while
        after as well. 
 
+
+# RESISTANCE
+
+*<resistance>screenEdgeStrength>*
+       Screen Edge Strength is how far past the screen's edge your cursor must
+       move before the window will move with it. Resistance is counted in
+       pixels. <core><gap> influences where the the screen's edge is at.
+       Default is 20 pixels.
+
 # SEE ALSO
 
 labwc(1), labwc-actions(5), labwc-theme(5)
index 16e090324b85926b2b8a59855389aabe4c3b6b8b..092c0b22a0eeb6b9bf3bbb296986cd1ba3141472 100644 (file)
     </device>
   </libinput>
 
+  <!-- edge strength is in pixels -->
+  <resistance>
+    <screenEdgeStrength>20</screenEdgeStrength>
+  </resistance>
+
 </labwc_config>
index 4ef5315356a5ae00ed25ff1f4c6d2a14b1c1f689..f9781f8b4952687a152a98ba10fae7fb9e6cc8d8 100644 (file)
@@ -419,7 +419,7 @@ rcxml_init()
        rc.doubleclick_time = 500;
        rc.repeat_rate = 25;
        rc.repeat_delay = 600;
-       rc.screen_edge_strength = 0;
+       rc.screen_edge_strength = 20;
 }
 
 static struct {