summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2008-06-18 20:04:03 +0200
committerDennis kasprzyk <onestone@opencompositing.org>2008-06-18 20:04:03 +0200
commit0bc295aaeb8482753cb801b216d72de861c16499 (patch)
treeb1f3293adf1bafb9d1ad93377b63a71716c3119f
parent2d1719edc6237b9db331b59ff14eef2329005eb4 (diff)
downloadmousepoll-0bc295aaeb8482753cb801b216d72de861c16499.tar.gz
mousepoll-0bc295aaeb8482753cb801b216d72de861c16499.tar.bz2
Track core changes
-rw-r--r--mousepoll.c5
-rw-r--r--mousepoll.xml.in2
2 files changed, 5 insertions, 2 deletions
diff --git a/mousepoll.c b/mousepoll.c
index 2dd540d..d64d641 100644
--- a/mousepoll.c
+++ b/mousepoll.c
@@ -166,6 +166,7 @@ mousepollAddPositionPolling (CompScreen *s,
getMousePosition (s);
ms->updateHandle =
compAddTimeout (
+ md->opt[MP_DISPLAY_OPTION_MOUSE_POLL_INTERVAL].value.i / 2,
md->opt[MP_DISPLAY_OPTION_MOUSE_POLL_INTERVAL].value.i,
updatePosition, s);
}
@@ -271,8 +272,10 @@ mousepollSetDisplayOption (CompPlugin *plugin,
compRemoveTimeout (ms->updateHandle);
ms->updateHandle =
compAddTimeout (
+ md->opt[MP_DISPLAY_OPTION_MOUSE_POLL_INTERVAL].value.i
+ / 2,
md->opt[MP_DISPLAY_OPTION_MOUSE_POLL_INTERVAL].value.i,
- updatePosition, s);
+ updatePosition, s);
}
}
return status;
diff --git a/mousepoll.xml.in b/mousepoll.xml.in
index cb67917..49070fd 100644
--- a/mousepoll.xml.in
+++ b/mousepoll.xml.in
@@ -12,7 +12,7 @@
<option type="int" name="mouse_poll_interval">
<_short>Mouse Poll Interval</_short>
<_long>How often to poll the mouse position, in miliseconds. Reduce this to reduce choppy behavior.</_long>
- <default>10</default>
+ <default>40</default>
<min>1</min>
<max>500</max>
</option>