Fix separate panels transparent background.

Regression was introduced with migration to Qt 5.12.8.
This commit is contained in:
John Preston 2020-05-05 13:51:38 +04:00
parent 8e568a4f15
commit 83fada4675

View file

@ -41,6 +41,7 @@ void InitOnTopPanel(not_null<QWidget*> panel) {
Assert([platformWindow isKindOfClass:[NSPanel class]]);
auto platformPanel = static_cast<NSPanel*>(platformWindow);
[platformPanel setBackgroundColor:[NSColor clearColor]];
[platformPanel setLevel:NSModalPanelWindowLevel];
[platformPanel setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces|NSWindowCollectionBehaviorStationary|NSWindowCollectionBehaviorFullScreenAuxiliary|NSWindowCollectionBehaviorIgnoresCycle];
[platformPanel setHidesOnDeactivate:NO];