mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
Create Overlay Widgets with Qt::Tool flag on Linux
Michael Dagenais found this change makes the widgets to play nicer with
Windows Managers and avoids them to get on top of other programs windows.
Minimize and Restore is automatically handled now, so this commit partially
reverts b89019264e, removing MainWindow
state changes tracking, but keeping VideoWindow position tracking.
This commit is contained in:
@@ -140,7 +140,6 @@ VideoWindow::VideoWindow(Context *context) :
|
||||
connect(context, SIGNAL(seek(long)), this, SLOT(seekPlayback(long)));
|
||||
connect(context, SIGNAL(unpause()), this, SLOT(resumePlayback()));
|
||||
connect(context, SIGNAL(mediaSelected(QString)), this, SLOT(mediaSelected(QString)));
|
||||
connect(this->window(), SIGNAL(mainWindowStateChanged(bool, bool)), this, SLOT(mainWindowStateChanged(bool, bool)));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,12 +176,6 @@ void VideoWindow::resizeEvent(QResizeEvent * )
|
||||
prevPosition = mapToGlobal(pos());
|
||||
}
|
||||
|
||||
void VideoWindow::mainWindowStateChanged(bool minimized, bool visible)
|
||||
{
|
||||
if(minimized) foreach(MeterWidget* p, m_metersWidget) p->hide();
|
||||
else if(visible && isVisible()) foreach(MeterWidget* p, m_metersWidget) p->show();
|
||||
}
|
||||
|
||||
void VideoWindow::startPlayback()
|
||||
{
|
||||
if (context->currentVideoSyncFile()) {
|
||||
|
||||
Reference in New Issue
Block a user