Flip layers
Layers can be moved within the Layer Stack. This allows you to rearrange their order and choose which ones will be dedicated to background or foreground elements.
To move a layer: left click and hold on a layer (click on an area without any buttons) then move your cursor right under or above another layer on the Layer Stack:

The Undo option in the Main Menu can be used to undo modifications of the Layer Stack.
A frequent mistake is to move one layer on another when trying to flip them:

Doing so will be interpreted by TVPaint as a merge of those two layers. Should you trigger the merge action, simply click on Cancel in the Merge pop up window to go back to your Layer Stack's previous state.
To avoid this, make sure you see the thin blue line between two layers before releasing your click if you wish to flip layers:
