We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d367a4e commit e4dfc7eCopy full SHA for e4dfc7e
src/qt/guiutil.cpp
@@ -411,14 +411,22 @@ void bringToFront(QWidget* w)
411
#endif
412
413
if (w) {
414
- // activateWindow() (sometimes) helps with keyboard focus on Windows
415
- if (w->isMinimized()) {
416
- w->showNormal();
417
- } else {
+ if (QGuiApplication::platformName() == "wayland") {
+ auto eFlags = w->windowFlags();
+ w->setWindowFlags(eFlags|Qt::WindowStaysOnTopHint);
+ w->show();
418
+ w->setWindowFlags(eFlags);
419
w->show();
420
+ } else {
421
+ // activateWindow() (sometimes) helps with keyboard focus on Windows
422
+ if (w->isMinimized()) {
423
+ w->showNormal();
424
425
426
+ }
427
+ w->activateWindow();
428
+ w->raise();
429
}
- w->activateWindow();
- w->raise();
430
431
432
0 commit comments