From bb982dc0af8eba6c8890d230feeb1092a1c371a5 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Sun, 29 Dec 2024 17:32:23 +0000 Subject: [PATCH] keyboard: set numlock to off by default ...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 | 2 +- docs/rc.xml.all | 2 +- src/config/rcxml.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/labwc-config.5.scd b/docs/labwc-config.5.scd index a6b1c5a8..9bbf1082 100644 --- a/docs/labwc-config.5.scd +++ b/docs/labwc-config.5.scd @@ -565,7 +565,7 @@ extending outward from the snapped edge. ** [on|off] When recognizing a new keyboard enable or disable Num Lock. - Default is on. + Default is off. ** [global|window] Stores the keyboard layout either globally or per window and restores diff --git a/docs/rc.xml.all b/docs/rc.xml.all index aa24838c..216e93c5 100644 --- a/docs/rc.xml.all +++ b/docs/rc.xml.all @@ -229,7 +229,7 @@ your favourite terminal or application launcher. See rc.xml for an example. --> - on + off global 25 600 diff --git a/src/config/rcxml.c b/src/config/rcxml.c index 31a63cce..f7d92e4c 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -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; -- 2.52.0