Use QWidget to see if the window is visible
Summary:
Instead of using KWindowInfo::mappingState that won't give reliable
information about the window on wayland.
Test Plan: tested locally
Reviewers: Frameworks, stikonas
Reviewed By: stikonas
Subscribers: stikonas
Tags: Frameworks
Differential Revision: https://phabricator.kde.org/D10518