mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-12 06:33:59 +00:00
Added destruction of media viewer native window on hide for Wayland.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user