summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-01-24 03:41:31 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-01-24 03:41:31 +0000
commit8433ee652a6a52b9d08afb03c4d99f062e3bdad9 (patch)
tree79117b73082f10a3c7e2c9f51a7a6daabbaf5aea
parentae09ad416b5720bf57c52e20d0522e4e481fe51a (diff)
downloadpcsxr-8433ee652a6a52b9d08afb03c4d99f062e3bdad9.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@40696 e17a0e51-4ae3-4d35-97c3-1a29b211df97
-rw-r--r--ChangeLog5
-rw-r--r--gui/LnxMain.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f15b95de..2b4e6c81 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
}
}