When shifting a window to another workspace, move the window before switching workspaces