From ebe8e91b4dde98f8b71e8a2359a514714fa2478f Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 16 May 2024 11:12:23 +0400 Subject: [PATCH] Communicate shadow size to the system for SeparatePanel --- ui/widgets/separate_panel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/widgets/separate_panel.cpp b/ui/widgets/separate_panel.cpp index 1ee1437..01bf57a 100644 --- a/ui/widgets/separate_panel.cpp +++ b/ui/widgets/separate_panel.cpp @@ -676,6 +676,12 @@ void SeparatePanel::initGeometry(QSize size) { }(); move(rect.topLeft()); setFixedSize(rect.size()); + createWinId(); + if (_useTransparency) { + Platform::SetWindowMargins(this, _padding); + } else { + Platform::UnsetWindowMargins(this); + } updateControlsGeometry(); }