Added destruction of media viewer native window on hide for Wayland.

This commit is contained in:
23rd
2026-05-21 21:33:41 +03:00
parent ea1ea65f6d
commit b5aa043cc3
@@ -4105,6 +4105,13 @@ void OverlayWidget::hide() {
clearBeforeHide();
applyHideWindowWorkaround();
_window->hide();
#ifdef Q_OS_LINUX
if (Platform::IsWayland()) {
if (const auto handle = _window->windowHandle()) {
handle->destroy();
}
}
#endif // Q_OS_LINUX
}
void OverlayWidget::setCursor(style::cursor cursor) {