Repetitive Strain Injury is an illness which can occur as a result of working with a mouse and keyboard. This utility can be used to remind you to take a break now and then. It will show you a random picture from a collection you can configure yourself for a configurable duration at a configurable interval. You can use these breaks to do some stretch exercises for example, or as a reminder to walk away from the computer for a while. RSIBreak will sit in your system tray and when it is time for a break it will show you the picture full screen. All timings can be set by clicking with the right mouse button on the icon in the system tray.
23 lines
710 B
Text
23 lines
710 B
Text
$NetBSD: patch-aa,v 1.1.1.1 2007/05/05 22:07:59 markd Exp $
|
|
|
|
XFree86 extensions/dpms.h doesn't wrap the function definitions with extern C
|
|
so don't include it but do same explicitly :-(
|
|
|
|
--- rsibreak/src/rsitimer_dpms.cpp.orig 2006-10-14 06:33:00.000000000 +1300
|
|
+++ rsibreak/src/rsitimer_dpms.cpp
|
|
@@ -17,7 +17,14 @@
|
|
*/
|
|
|
|
#include <X11/Xutil.h>
|
|
-#include <X11/extensions/dpms.h>
|
|
+#include <X11/X.h>
|
|
+#include <X11/Xmd.h>
|
|
+
|
|
+_XFUNCPROTOBEGIN
|
|
+extern Bool DPMSQueryExtension(Display *, int *, int *);
|
|
+extern Bool DPMSCapable(Display *);
|
|
+extern Bool DPMSGetTimeouts(Display *, CARD16 *, CARD16 *, CARD16 *);
|
|
+_XFUNCPROTOEND
|
|
|
|
bool QueryDPMSTimeouts(Display* display, int& standby, int& suspend, int& off)
|
|
{
|