shithub: plan9front

Download patch

ref: c848ca62673689df20e7fef74d1d5180f37fcea6
parent: 2929a3bf67225b16284fd21bb0298bddeac142d1
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Jul 1 19:11:11 EDT 2021

devmouse: default to no blanking instead of 30 minute blank timeout

--- a/sys/man/3/mouse	Wed Jun 30 08:23:45 2021
+++ b/sys/man/3/mouse	Thu Jul  1 19:11:11 2021
@@ -156,15 +156,17 @@
 .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
--- a/sys/src/9/port/devmouse.c	Wed Jun 30 08:23:45 2021
+++ b/sys/src/9/port/devmouse.c	Thu Jul  1 19:11:11 2021
@@ -98,7 +98,7 @@
 static int mouseswap;
 static int scrollswap;
 static ulong mousetime;
-static ulong blanktime = 30;	/* in minutes; a half hour */
+static ulong blanktime;
 
 extern Memimage* gscreen;