Update:
After installing gdm (instead of lightdm) the problem did not occur anymore.
So: the problem seems to be in lightdm.
Update:
After installing gdm (instead of lightdm) the problem did not occur anymore.
So: the problem seems to be in lightdm.