I wanted to swap workspaces on second screen with this command:
gsettings set org.gnome.mutter workspaces-only-on-primary true
After some tests, I decided to reset the setting:
gsettings set org.gnome.mutter workspaces-only-on-primary false
And now when I switch workspaces, the background becomes gray for a second (see video).