wayland/gtk-shell: Emit new capabilities event when changed
From the commit message of the last commit:
The capabilities may change during the compositors lifetime, so make
gtk-shell emit the capabilities event when capabilities change.
https://gitlab.gnome.org/GNOME/mutter/issues/276
The rest are just some preparations and gobjectifications.