Backport upstream fixes for qtwayland
Summary:
This mainly fix the annoying issue where menus won't show again.
Patches are backported from 5.12 branch and from approved reviews.
Reviewers: apol
Reviewed By: apol
Subscribers: pino
Differential Revision: https://phabricator.kde.org/D22205