cube usually rotates by 2 faces when using ctrlaltleft or ctrlaltright
Bug #157588 reported by
Terry Browning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
compiz (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: compiz
There are 4 faces to the cube, and I can see the face I want whizz by as I try to rotate by only 1 face.
Every other method for changing the faces works fine, it's just the keyboard that has the problem.
One workaround I have found is to rotate the cube a full rotation or so. This often gets a rotation by an odd number of faces. :-\
This may be complicated by the use of emerald, and may be the related to bug #155981, since 2 key presses causes a full rotation (usually).
Annoying.
To post a comment you must log in.
A curious observation:
both ctrlaltleft and ctrlaltright are affected by the same bug, but differently.
Given the faces are numbered 0..3 (I'm using the gnome workspace switcher to track faces/virtual screens):
ctrlaltleft moves to an odd numbered face
ctrlaltright moves to an even numbered face
8-/
curiouser and curiouser.
except it's not the last key press, but the last-but-one key press that counts!
ctrlaltleft ctrlaltleft - gets an odd face
ctrlaltleft ctrlaltright - gets an odd face!
ctrlaltleft ctrlaltright ctrlaltright - gets an even face!!
A variable is being used before initialization (although initialization is occuring). Race condition?
Maybe the move is happening twice, once with uninitialized state, and once with initialized state. Doesn't explain the left>odd, right>even pattern.
I have noticed that this pattern breaks down when I press the buttons quickly, but I can't pin down the new pattern. More evidence of a race.
I tried 6 virtual screens, and the same pattern occurs. ctrlaltleft cycles 153153, and ctrlaltright cycles 024024.
I tried 5 virtual screens. ctrlaltleft cycles 420420420, ctrlaltright cycles 024024024.
I can still get the odd faces by fast-keying, but the 024/420 pattern re-establishes itself quickly when I return to a slow pace.
However, if I am at an odd face, I can move between them reliably unless I try to go around the end:
Starting at face 1, ctrlaltright gets me face 3
Starting at fare 3, ctrlaltleft gets me face 1
Starting at face 1, ctrlaltleft gets me face 4
Starting at face 3, ctrlaltright gets me face 0
The end-of-list code is affecting the odd/even thing. Also, I can't see the last-but-one effect. Could just be a side effect from the bug.