diff options
author | Sam Spilsbury <smspillaz@gmail.com> | 2011-01-05 00:30:03 +0800 |
---|---|---|
committer | Sam Spilsbury <smspillaz@gmail.com> | 2011-01-05 00:30:03 +0800 |
commit | 40dbad873b5b7da73203e5686eea2154364d3ee5 (patch) | |
tree | ca3aeb5f152ecab843962fbf5f717f926e109807 | |
parent | 742e14cd0890edfd56d928668245eba82c7270c8 (diff) | |
download | compiz-with-glib-mainloop-40dbad873b5b7da73203e5686eea2154364d3ee5.tar.gz compiz-with-glib-mainloop-40dbad873b5b7da73203e5686eea2154364d3ee5.tar.bz2 |
Make the timeout for the zero-timer case 15, just so that we don't
end up spamming things (15msec isn't that long)
-rw-r--r-- | src/screen.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/screen.cpp b/src/screen.cpp index 72aa1dc..03b97bf 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -271,6 +271,8 @@ CompTimeoutSource::create () return Glib::RefPtr <CompTimeoutSource> (new CompTimeoutSource ()); } +#define COMPIZ_TIMEOUT_WAIT 15 + bool CompTimeoutSource::prepare (int &timeout) { @@ -289,7 +291,7 @@ CompTimeoutSource::prepare (int &timeout) * and that doesn't stop until compiz does */ - timeout = 0; + timeout = COMPIZ_TIMEOUT_WAIT; return true; } |