summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-04-04 16:28:51 +0200
committerDanny Baumann <dannybaumann@web.de>2007-04-04 16:28:51 +0200
commit47efbc785bb463ec8e7e343664e7098967c26d84 (patch)
tree785ba64e83d8de8deb7953fead34451d4e66018d
parent81fcdfb8d990edf475537e6d024f540d2fda03da (diff)
downloadberyl-premerge-47efbc785bb463ec8e7e343664e7098967c26d84.tar.gz
beryl-premerge-47efbc785bb463ec8e7e343664e7098967c26d84.tar.bz2
ring: properly initialize struct members
-rw-r--r--src/ring.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ring.c b/src/ring.c
index 7a8b9fa..bc2abf1 100644
--- a/src/ring.c
+++ b/src/ring.c
@@ -1635,6 +1635,9 @@ ringInitScreen (CompPlugin *p,
rs->moreAdjust = FALSE;
rs->rotateAdjust = FALSE;
+ rs->rotAdjust = 0;
+ rs->rVelocity = 0;
+
rs->textPixmap = None;
matchInit (&rs->match);
@@ -1696,7 +1699,7 @@ ringInitWindow (CompPlugin *p,
rw->tx = rw->ty = 0.0f;
rw->adjust = FALSE;
rw->xVelocity = rw->yVelocity = 0.0f;
- rw->scaleVelocity = 1.0f;
+ rw->scaleVelocity = 0.0f;
w->privates[rs->windowPrivateIndex].ptr = rw;