summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2010-07-15 08:57:26 -0700
committerJamey Sharp <jamey@minilop.net>2011-12-14 18:39:26 -0800
commitbb78af03d96b1884f5a14262062d38a5884979ef (patch)
tree6e003caa7bd5d37a5a92373f0f1818b3a4da16df
parent21d05a82da92410996773c4c4f09ac0ebc15f97a (diff)
rootless: ROOTLESS_REDISPLAY_DELAY is configured the same way everywhere.rootless
So just make it a local constant. While I was at it, I declared it as an appropriately-typed static constant rather than a preprocessor substitution. Signed-off-by: Jamey Sharp <jamey@minilop.net> Cc: Jeremy Huddleston <jeremyhu@apple.com> Cc: Jon TURNEY <jon.turney@dronecode.org.uk> Cc: Colin Harrison <colin.harrison@virgin.net>
-rw-r--r--miext/rootless/README.txt4
-rw-r--r--miext/rootless/rootlessConfig.h2
-rw-r--r--miext/rootless/rootlessScreen.c4
3 files changed, 1 insertions, 9 deletions
diff --git a/miext/rootless/README.txt b/miext/rootless/README.txt
index 3ae5ce56a..405f3bc71 100644
--- a/miext/rootless/README.txt
+++ b/miext/rootless/README.txt
@@ -76,10 +76,6 @@ rootlessConfig.h to specify compile time options for its platform.
The following compile-time options are defined in
rootlessConfig.h:
- o ROOTLESS_REDISPLAY_DELAY: Time in milliseconds between updates to
- the underlying window server. Most operations will be buffered until
- this time has expired.
-
o ROOTLESS_RESIZE_GRAVITY: If the underlying window system supports it,
some frame resizes can be optimized by relying on the frame contents
maintaining a particular gravity during the resize. In this way less
diff --git a/miext/rootless/rootlessConfig.h b/miext/rootless/rootlessConfig.h
index 8fb502dc6..a25c503f8 100644
--- a/miext/rootless/rootlessConfig.h
+++ b/miext/rootless/rootlessConfig.h
@@ -36,7 +36,6 @@
#ifdef __APPLE__
-# define ROOTLESS_REDISPLAY_DELAY 10
# define ROOTLESS_RESIZE_GRAVITY TRUE
/*# define ROOTLESSDEBUG*/
@@ -44,7 +43,6 @@
#if defined(__CYGWIN__) || defined(WIN32)
-# define ROOTLESS_REDISPLAY_DELAY 10
# undef ROOTLESS_RESIZE_GRAVITY
/*# define ROOTLESSDEBUG*/
diff --git a/miext/rootless/rootlessScreen.c b/miext/rootless/rootlessScreen.c
index c8557066e..447d7bbfb 100644
--- a/miext/rootless/rootlessScreen.c
+++ b/miext/rootless/rootlessScreen.c
@@ -53,9 +53,7 @@
#include "rootlessWindow.h"
/* In milliseconds */
-#ifndef ROOTLESS_REDISPLAY_DELAY
-#define ROOTLESS_REDISPLAY_DELAY 10
-#endif
+static const CARD32 ROOTLESS_REDISPLAY_DELAY = 10;
extern int RootlessMiValidateTree(WindowPtr pRoot, WindowPtr pChild,
VTKind kind);