qtwayland: fix the client behavior when showing/hiding a surface