Add this line in /etc/lightdm/lightdm.conf:

greeter-setup-script=/usr/bin/synergyc <OPTIONS> <SERVER HOSTNAME>
session-setup-script=/usr/bin/killall -w synergyc
ession-cleanup-script=/usr/bin/killall -w synergy
display-stopped-script=/usr/bin/killall -w synergyc