Keep every project on its own stage
One stage for code, one for mail, one for music. Switching context becomes a single key press.
The trick is not to fight the window manager. Group what belongs together, give each group a home, and let the layout take care of itself. When a new window shows up, it should find its place without you dragging anything.
After a week the keyboard is the fastest way around: left and right between windows, up and down between stages.