From bbd35238daf6ca1402c83931c456f5c3ff02d88b Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 29 Jan 2020 18:02:15 +0300 Subject: [PATCH] Don't force floating panel. In case of StaysOnTop windows it looks like it is floating already. But in case of manually setting floating here it has a strange bug with non-activatable always on top tool window (picture-in-picture). When first time shown it doesn't act as a stays-on-top window, if you click on another app it is shown above the PiP. Only if you activate the main window once more the PiP will become stays-on-top window. This way it works from the first show. --- ui/platform/mac/ui_utility_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/platform/mac/ui_utility_mac.mm b/ui/platform/mac/ui_utility_mac.mm index 76d986d..9166f01 100644 --- a/ui/platform/mac/ui_utility_mac.mm +++ b/ui/platform/mac/ui_utility_mac.mm @@ -43,8 +43,8 @@ void InitOnTopPanel(not_null panel) { auto platformPanel = static_cast(platformWindow); [platformPanel setLevel:NSPopUpMenuWindowLevel]; [platformPanel setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces|NSWindowCollectionBehaviorStationary|NSWindowCollectionBehaviorFullScreenAuxiliary|NSWindowCollectionBehaviorIgnoresCycle]; - [platformPanel setFloatingPanel:YES]; [platformPanel setHidesOnDeactivate:NO]; + //[platformPanel setFloatingPanel:YES]; Integration::Instance().activationFromTopPanel(); }