I'll add that berend's suggestion (#11) fits my case. To solve, I inspected settings using gsettings and I found number-of-desktops set to "2". When I set it to 1 (which I believe is the default value) the problem went away.
# Get the current value for number-of-desktops
gsettings get org.compiz.core:/org/compiz/profiles/unity/plugins/core/ number-of-desktops
2
# Set my desired values for number-of-desktops, and number of workspaces.
gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ number-of-desktops 1
gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ hsize 2
gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ vsize 2
I'll add that berend's suggestion (#11) fits my case. To solve, I inspected settings using gsettings and I found number-of-desktops set to "2". When I set it to 1 (which I believe is the default value) the problem went away.
Here's an example from console:
# Find the keys I'm looking for. core:/org/ compiz/ profiles/ unity/plugins/ core/
gsettings list-keys org.compiz.
...
hsize
vsize
number-of-desktops
...
# Get the current value for number-of-desktops core:/org/ compiz/ profiles/ unity/plugins/ core/ number-of-desktops
gsettings get org.compiz.
2
# Set my desired values for number-of-desktops, and number of workspaces. core:/org/ compiz/ profiles/ unity/plugins/ core/ number-of-desktops 1 core:/org/ compiz/ profiles/ unity/plugins/ core/ hsize 2 core:/org/ compiz/ profiles/ unity/plugins/ core/ vsize 2
gsettings set org.compiz.
gsettings set org.compiz.
gsettings set org.compiz.