Revert "gui, qt: brintToFront workaround for Wayland"
This reverts commit 15aa7d0236.
This commit is contained in:
1 file changed
+2
-9
+2
-9
@@ -405,17 +405,11 @@ bool isObscured(QWidget *w)
|
||||
|
||||
void bringToFront(QWidget* w)
|
||||
{
|
||||
if (w) {
|
||||
if (QGuiApplication::platformName() == "wayland") {
|
||||
auto flags = w->windowFlags();
|
||||
w->setWindowFlags(flags|Qt::WindowStaysOnTopHint);
|
||||
w->show();
|
||||
w->setWindowFlags(flags);
|
||||
w->show();
|
||||
} else {
|
||||
#ifdef Q_OS_MACOS
|
||||
ForceActivation();
|
||||
#endif
|
||||
|
||||
if (w) {
|
||||
// activateWindow() (sometimes) helps with keyboard focus on Windows
|
||||
if (w->isMinimized()) {
|
||||
w->showNormal();
|
||||
@@ -426,7 +420,6 @@ void bringToFront(QWidget* w)
|
||||
w->raise();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void handleCloseWindowShortcut(QWidget* w)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user