summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--3d.c4
-rw-r--r--3d.xml.in18
2 files changed, 14 insertions, 8 deletions
diff --git a/3d.c b/3d.c
index 7296d25..4c782ec 100644
--- a/3d.c
+++ b/3d.c
@@ -149,8 +149,8 @@ tdPreparePaintScreen (CompScreen *s,
amount = ((float)msSinceLastPaint * tdGetSpeed (s) / 1000.0);
if (tds->active)
{
- float maxDiv = 0.1; // should be a option;
- float minScale = 0.5; // should be a option;
+ float maxDiv = (float) tdGetMaxWindowSpace (s) / 100;
+ float minScale = (float) tdGetMinCubeSize (s) / 100;
tds->maxDepth = 0;
for (w = s->windows; w; w = w->next)
diff --git a/3d.xml.in b/3d.xml.in
index 24c8a11..a85d42c 100644
--- a/3d.xml.in
+++ b/3d.xml.in
@@ -20,13 +20,19 @@
<_long>Windows that should be handled by 3D</_long>
<default>Toolbar | Utility | Dialog | Normal | Unknown</default>
</option>
- <option name="space" type="float">
+ <option name="min_cube_size" type="int">
+ <_short>Minimum Cube Size</_short>
+ <_long>Minimum cube size (in percent).</_long>
+ <default>60</default>
+ <min>10</min>
+ <max>100</max>
+ </option>
+ <option name="max_window_space" type="int">
<_short>Window Space</_short>
- <_long>Change the amount of space between the windows.</_long>
- <default>0.02</default>
- <min>0.0</min>
- <max>1.0</max>
- <precision>0.001</precision>
+ <_long>Change the amount of space between the windows (in percent of the cube size).</_long>
+ <default>10</default>
+ <min>0</min>
+ <max>50</max>
</option>
<option name="speed" type="float">
<_short>Animation Speed</_short>