If I use gdm3, the problem does not appear, instead if I use lightdm, the problem appear until I restart cinnamon:
How can I solve the problem?
EDIT: I have installed these two in the following manner:
sudo apt install lightdm # choosed lightdm in the interactive prompt
sudo apt install cinnamon-desktop-environment
And then rebooted.