[server] Don't emit unmapped if the Surface wasn't mapped

Authored by graesslin on Mar 30 2016, 8:16 AM.

Description

[server] Don't emit unmapped if the Surface wasn't mapped

Summary:
If a Surface doesn't have a buffer attached and a null buffer gets
attached the buffer state doesn't really change. Thus neither the
unmapped signal nor the damaged signal should not be emitted.

Reviewers: Plasma

Subscribers: plasma-devel

Projects: Plasma

Differential Revision: https://phabricator.kde.org/D1261