From c848ca62673689df20e7fef74d1d5180f37fcea6 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 1 Jul 2021 23:11:11 +0000 Subject: [PATCH] devmouse: default to no blanking instead of 30 minute blank timeout --- sys/man/3/mouse | 8 +++++--- sys/src/9/port/devmouse.c | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/man/3/mouse b/sys/man/3/mouse index 57772eab9..dbc46cd6b 100644 --- a/sys/man/3/mouse +++ b/sys/man/3/mouse @@ -156,15 +156,17 @@ to its default state. .TP .B blank blanks the screen. -The screen also blanks after 30 minutes of inactivity. +The screen also blanks after +.I blanktime +minutes of inactivity. The screen can be unblanked by moving the mouse. .TP .BI blanktime " minutes" sets the timeout before the -screen blanks; the default is 30 minutes. +screen blanks. If .I minutes -is zero, blanking is disabled. +is zero, blanking is disabled (this is the default). .TP .B twitch unblanks the screen and resets the idle timeout as if the diff --git a/sys/src/9/port/devmouse.c b/sys/src/9/port/devmouse.c index cec16c753..d09d6f7d5 100644 --- a/sys/src/9/port/devmouse.c +++ b/sys/src/9/port/devmouse.c @@ -98,7 +98,7 @@ static uchar buttonmap[8] = { static int mouseswap; static int scrollswap; static ulong mousetime; -static ulong blanktime = 30; /* in minutes; a half hour */ +static ulong blanktime; extern Memimage* gscreen; -- 2.44.0