wayland: Make debug console placeable

Since the debug console has Qt.BypassWindowManagerHint flag set, it
won't be placed or ensured that it stays in the work area.

On the other hand, unlike X11, kwin won't have problems if the debug
console is managed on wayland.

BUG: 453920
This commit is contained in:
Vlad Zahorodnii 2022-11-15 14:09:15 +02:00
parent 34960e8e74
commit e58affc71b

View file

@ -620,6 +620,7 @@ DebugConsole::DebugConsole()
m_ui->tabWidget->setTabEnabled(1, false);
m_ui->tabWidget->setTabEnabled(2, false);
m_ui->tabWidget->setTabEnabled(6, false);
setWindowFlags(Qt::X11BypassWindowManagerHint);
}
connect(m_ui->quitButton, &QAbstractButton::clicked, this, &DebugConsole::deleteLater);
@ -649,9 +650,6 @@ DebugConsole::DebugConsole()
}
});
// for X11
setWindowFlags(Qt::X11BypassWindowManagerHint);
initGLTab();
}