diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-03-18 16:58:27 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-03-18 16:58:27 +0100 |
commit | 1a2aefcf119e21345e41466d3d28bddcd6d6488a (patch) | |
tree | a912921ae86a62984257ac4cbe8c950a68682775 /sys/src/9/omap/screen.h | |
parent | 08453422b1b8ac1daaba8000fb07d6551fb155b8 (diff) |
devmouse: refactor screen blanking logic
devmouse controls the screen blanking timeout, so move the
code there avoiding cross calls between modules. the only
function that needs to be provided is blankscreen(), which
gets called with drawlock locked.
the blank timeout is set thru /dev/mousectl now, so kernels
without devvga can set it.
blanking now only happens while /dev/mouse is read. so this
avoids accidentally blanking the screen on cpu servers that
do not have a mouse to unblank it.
Diffstat (limited to 'sys/src/9/omap/screen.h')
-rw-r--r-- | sys/src/9/omap/screen.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/src/9/omap/screen.h b/sys/src/9/omap/screen.h index 3c5b0dea4..882428056 100644 --- a/sys/src/9/omap/screen.h +++ b/sys/src/9/omap/screen.h @@ -42,10 +42,8 @@ extern void swcursorunhide(void); extern void deletescreenimage(void); extern void resetscreenimage(void); extern int drawhasclients(void); -extern ulong blanktime; extern void setscreenimageclipr(Rectangle); extern void drawflush(void); -extern int drawidletime(void); extern QLock drawlock; #define ishwimage(i) 0 /* for ../port/devdraw.c */ |