Skip to main content
ALT Linux Bugzilla
– Attachment 22374 Details for
Bug 60884
В opentoonz окна открываются позади основного
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Показывать Startup после главного окна для корректного transient parent в Wayland
opentoonz-startup-wayland-parent.patch (text/plain), 973 bytes, created by
Anton Farygin
on 2026-10-09 11:59:32 MSK
(
hide
)
Description:
Показывать Startup после главного окна для корректного transient parent в Wayland
Filename:
MIME Type:
Creator:
Anton Farygin
Created:
2026-10-09 11:59:32 MSK
Size:
973 bytes
patch
obsolete
>diff --git a/toonz/sources/toonz/mainwindow.cpp b/toonz/sources/toonz/mainwindow.cpp >index ba48cdc3..14c47317 100644 >--- a/toonz/sources/toonz/mainwindow.cpp >+++ b/toonz/sources/toonz/mainwindow.cpp >@@ -58,6 +58,7 @@ > #include <QPushButton> > #include <QLabel> > #include <QMessageBox> >+#include <QTimer> > #ifdef _WIN32 > #include <QtPlatformHeaders/QWindowsWindowFunctions> > #endif >@@ -1526,9 +1527,12 @@ void MainWindow::showEvent(QShowEvent *event) { > // main.cpp > if (Preferences::instance()->isStartupPopupEnabled() && > !m_startupPopupShown) { >- StartupPopup *startupPopup = new StartupPopup(); >- startupPopup->show(); > m_startupPopupShown = true; >+ // Map the main window first so Wayland can assign the dialog's parent. >+ QTimer::singleShot(0, this, []() { >+ StartupPopup *startupPopup = new StartupPopup(); >+ startupPopup->show(); >+ }); > } > } > extern const char *applicationName;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 60884
:
22371
| 22374