]> git.mdlowis.com Git - proto/labwc.git/commitdiff
keyboard: set numlock to off by default
authorJohan Malm <jgm323@gmail.com>
Sun, 29 Dec 2024 17:32:23 +0000 (17:32 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 29 Dec 2024 21:34:41 +0000 (21:34 +0000)
...to avoid surprises on Acer Aspire One laptops where the numeric
keyboard does not physically exist but "overlaps" the qwerty keyboard.

Reported-by: staryvyr on IRC
Note: We do not like changing defaults, but feel that there is a good
reason for this one.

docs/labwc-config.5.scd
docs/rc.xml.all
src/config/rcxml.c

index a6b1c5a8bc0c115092ebec8ba18b5ae3e324fc9c..9bbf1082afa69078e7b80008dd9fd4ec0b90718e 100644 (file)
@@ -565,7 +565,7 @@ extending outward from the snapped edge.
 
 *<keyboard><numlock>* [on|off]
        When recognizing a new keyboard enable or disable Num Lock.
-       Default is on.
+       Default is off.
 
 *<keyboard layoutScope="">* [global|window]
        Stores the keyboard layout either globally or per window and restores
index aa24838c30832bf7abc80321e59d97c53bdfeb5f..216e93c5e2c4622e8894bad6771be97b9738f352 100644 (file)
     your favourite terminal or application launcher. See rc.xml for an example.
   -->
   <keyboard>
-    <numlock>on</numlock>
+    <numlock>off</numlock>
     <layoutScope>global</layoutScope>
     <repeatRate>25</repeatRate>
     <repeatDelay>600</repeatDelay>
index 31a63ccee379681d0fd416f9b6eeaaea2320aade..f7d92e4c856fc2056f6037ee143c2d4f727c4fd0 100644 (file)
@@ -1497,7 +1497,7 @@ rcxml_init(void)
 
        rc.repeat_rate = 25;
        rc.repeat_delay = 600;
-       rc.kb_numlock_enable = true;
+       rc.kb_numlock_enable = false;
        rc.kb_layout_per_window = false;
        rc.screen_edge_strength = 20;
        rc.window_edge_strength = 20;