diff options
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | gui/LnxMain.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +January 24, 2010 Wei Mingzhi <whistler_wmz@users.sf.net> + + * gui/LnxMain.c: Don't always move the mouse to the right for screensaver + disabling. + January 23, 2010 Wei Mingzhi <weimingzhi@gmail.com> * libpcsxcore/cdriso.c: Moved several definations into cdriso.h. diff --git a/gui/LnxMain.c b/gui/LnxMain.c index 64cc36e0..739e77aa 100644 --- a/gui/LnxMain.c +++ b/gui/LnxMain.c @@ -536,7 +536,7 @@ void SysCloseLibrary(void *lib) { static void SysDisableScreenSaver() { static time_t fake_key_timer = 0; - static char first_time = 1, has_test_ext = 0; + static char first_time = 1, has_test_ext = 0, t = 1; Display *display; extern unsigned long gpuDisp; @@ -551,7 +551,7 @@ static void SysDisableScreenSaver() { } if (has_test_ext && fake_key_timer < time(NULL)) { - XTestFakeRelativeMotionEvent(display, 1, 0, 0); + XTestFakeRelativeMotionEvent(display, t *= -1, 0, 0); fake_key_timer = time(NULL) + 55; } } |
