[wayland] Process pending state and map the client on commit
Summary:
Move unrelated code out of XdgShellClient::addDamage() into a separate
method.
Reviewers: KWin
Subscribers: kwin
Tags: KWin
Differential Revision: https://phabricator.kde.org/D24328