Improve calls panel in macOS.

Use Qt::Dialog instead of Qt::Tool which works better with window
activation / deactivation handling.

Stop displaying the panel on all spaces when the call is established.
This commit is contained in:
John Preston
2017-05-02 12:08:08 +03:00
parent 0cdac83f8a
commit 5f2e295d63
14 changed files with 149 additions and 129 deletions
@@ -377,10 +377,7 @@ void finish() {
_psEventFilter = nullptr;
}
void SetWatchingMediaKeys(bool watching) {
}
bool TransparentWindowsSupported(QPoint globalPosition) {
bool TranslucentWindowsSupported(QPoint globalPosition) {
if (auto app = static_cast<QGuiApplication*>(QCoreApplication::instance())) {
if (auto native = app->platformNativeInterface()) {
if (auto desktop = QApplication::desktop()) {
@@ -405,9 +402,6 @@ bool TransparentWindowsSupported(QPoint globalPosition) {
return false;
}
void InitOnTopPanel(QWidget *panel) {
}
namespace ThirdParty {
void start() {