shell / xwm: Make fullscreen and maximize play nice together

This fixes a problem when going fullscreen from a maximized xwayland surface,
where the size, position and state would get confused.