Fix PiP window on macOS.

This commit is contained in:
John Preston 2020-01-28 20:10:27 +03:00
parent f24f27a13c
commit 58dd33d8a2
3 changed files with 5 additions and 3 deletions

View File

@ -174,7 +174,7 @@ private:
float64 playbackControlsCurrentVolume() override;
void playbackControlsVolumeToggled() override;
void playbackControlsVolumeChangeFinished() override;
void playbackControlsSpeedChanged(float64 speed);
void playbackControlsSpeedChanged(float64 speed) override;
float64 playbackControlsCurrentSpeed() override;
void playbackControlsToFullScreen() override;
void playbackControlsFromFullScreen() override;

View File

@ -211,6 +211,8 @@ PipPanel::PipPanel(
| Qt::FramelessWindowHint
| Qt::WindowDoesNotAcceptFocus);
setAttribute(Qt::WA_ShowWithoutActivating);
setAttribute(Qt::WA_MacAlwaysShowToolWindow);
Ui::Platform::InitOnTopPanel(this);
setMouseTracking(true);
resize(0, 0);
show();

View File

@ -33,7 +33,7 @@ Go to ***BuildPath*** and run
git clone https://github.com/desktop-app/patches.git
cd patches
git checkout 395b620
git checkout 4f1cffb
cd ../
git clone https://chromium.googlesource.com/external/gyp
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
@ -50,7 +50,7 @@ Go to ***BuildPath*** and run
git clone https://github.com/desktop-app/patches.git
cd patches
git checkout 395b620
git checkout 4f1cffb
cd ../
git clone --branch 0.10.0 https://github.com/ericniebler/range-v3