summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rubik.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubik.c b/rubik.c
index ef75a4b..67032aa 100644
--- a/rubik.c
+++ b/rubik.c
@@ -833,7 +833,7 @@ static Bool RubikDamageWindowRect(CompWindow *w, Bool initial, BoxPtr rect){
CUBE_SCREEN (w->screen);
//RUBIK_WINDOW(w);
- if (rs->initiated && (cs->rotationState!=RotationNone || !rubikGetEnableOnManualRotate(w->screen)))
+ if (w->damaged || (rs->initiated && (cs->rotationState!=RotationNone || !rubikGetEnableOnManualRotate(w->screen))))
damageScreen(w->screen);
UNWRAP(rs, w->screen, damageWindowRect);
@@ -875,7 +875,7 @@ toggleRubikEffect (CompScreen *s)
currentVStrip = NRAND(vStrips);
currentStripCounter =0;
currentStripDirection = NRAND(2)*2-1;
- rotationAxis = NRAND(1);
+ rotationAxis = NRAND(3);
//cs->rotationState = RotationManual;