2006-07-18 17:15:08 +00:00
|
|
|
Change the compiz indirect rendering and tfp binding settings to
|
|
|
|
|
|
|
|
From: Kristian Høgsberg <krh@redhat.com>
|
|
|
|
|
|
|
|
work with AIGLX.
|
|
|
|
---
|
|
|
|
|
|
|
|
src/main.c | 16 +++++++++++++---
|
|
|
|
1 files changed, 13 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/src/main.c b/src/main.c
|
2006-08-18 01:36:27 +00:00
|
|
|
index 3d3a9c5..bbafd2b 100644
|
2006-07-18 17:15:08 +00:00
|
|
|
--- a/src/main.c
|
|
|
|
+++ b/src/main.c
|
2006-08-18 01:36:27 +00:00
|
|
|
@@ -78,8 +78,8 @@ CompWindow *lastFoundWindow = 0;
|
2006-07-18 17:15:08 +00:00
|
|
|
CompWindow *lastDamagedWindow = 0;
|
|
|
|
|
|
|
|
Bool replaceCurrentWm = FALSE;
|
|
|
|
-Bool indirectRendering = FALSE;
|
|
|
|
-Bool strictBinding = FALSE;
|
|
|
|
+Bool indirectRendering = TRUE;
|
|
|
|
+Bool strictBinding = TRUE;
|
|
|
|
|
|
|
|
static void
|
|
|
|
usage (void)
|
2006-08-18 01:36:27 +00:00
|
|
|
@@ -90,8 +90,10 @@ usage (void)
|
2006-07-18 17:15:08 +00:00
|
|
|
"[--refresh-rate RATE]\n "
|
|
|
|
"[--fast-filter] "
|
|
|
|
"[--indirect-rendering] "
|
|
|
|
+ "[--direct-rendering]\n "
|
|
|
|
"[--strict-binding] "
|
|
|
|
- "[--test-mode]\n "
|
|
|
|
+ "[--xgl-binding] "
|
|
|
|
+ "[--test-mode]\n "
|
|
|
|
"[--replace] "
|
|
|
|
"[--sm-disable] "
|
|
|
|
"[--sm-client-id ID] "
|
2006-08-18 01:36:27 +00:00
|
|
|
@@ -182,10 +184,18 @@ main (int argc, char **argv)
|
2006-07-18 17:15:08 +00:00
|
|
|
{
|
|
|
|
indirectRendering = TRUE;
|
|
|
|
}
|
|
|
|
+ else if (!strcmp (argv[i], "--direct-rendering"))
|
|
|
|
+ {
|
|
|
|
+ indirectRendering = FALSE;
|
|
|
|
+ }
|
|
|
|
else if (!strcmp (argv[i], "--strict-binding"))
|
|
|
|
{
|
|
|
|
strictBinding = TRUE;
|
|
|
|
}
|
|
|
|
+ else if (!strcmp (argv[i], "--xgl-binding"))
|
|
|
|
+ {
|
|
|
|
+ strictBinding = FALSE;
|
|
|
|
+ }
|
|
|
|
else if (!strcmp (argv[i], "--replace"))
|
|
|
|
{
|
|
|
|
replaceCurrentWm = TRUE;
|