diff options
Diffstat (limited to 'rubik.c')
-rw-r--r-- | rubik.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |