Fix a glitch in IV sharing on Windows.

This commit is contained in:
John Preston 2024-03-14 19:03:46 +04:00
parent 461aebd7f3
commit 2e7323d484
1 changed files with 1 additions and 0 deletions

View File

@ -793,6 +793,7 @@ void Controller::showShareMenu() {
: nullptr);
const auto margins = QMargins(0, st::windowTitleHeight, 0, 0);
if (!_shareHidesContent) {
_shareWrap->setGeometry(_window->geometry().marginsRemoved(margins));
_shareWrap->setWindowFlag(Qt::FramelessWindowHint);
_shareWrap->setAttribute(Qt::WA_TranslucentBackground);
_shareWrap->setAttribute(Qt::WA_NoSystemBackground);