diff --git a/ui/widgets/popup_menu.cpp b/ui/widgets/popup_menu.cpp index 75cd2c0..dd6d3bf 100644 --- a/ui/widgets/popup_menu.cpp +++ b/ui/widgets/popup_menu.cpp @@ -302,6 +302,13 @@ void PopupMenu::handleCompositingUpdate() { _padding = _useTransparency ? _st.shadow.extend : style::margins(line, line, line, line); + if (windowHandle()) { + if (_useTransparency) { + Platform::SetWindowExtents(this, _padding); + } else { + Platform::UnsetWindowExtents(this); + } + } _scroll->moveToLeft(_padding.left(), _padding.top()); handleMenuResize(); updateRoundingOverlay();