mirror of
https://github.com/jellyfin/jellyfin-media-player.git
synced 2024-11-27 00:00:38 +00:00
Stop forcing fullscreen on Windows when visibility changes. (#94)
This commit is contained in:
parent
b670715a5c
commit
5d18f14bc2
@ -478,20 +478,6 @@ void KonvergoWindow::onVisibilityChanged(QWindow::Visibility visibility)
|
|||||||
{
|
{
|
||||||
QLOG_DEBUG() << "QWindow visibility set to" << visibility;
|
QLOG_DEBUG() << "QWindow visibility set to" << visibility;
|
||||||
|
|
||||||
#ifdef Q_OS_WIN32
|
|
||||||
if (visibility == QWindow::Windowed)
|
|
||||||
{
|
|
||||||
QScreen* realScreen = findCurrentScreen();
|
|
||||||
if (realScreen && realScreen->geometry() == geometry())
|
|
||||||
{
|
|
||||||
QLOG_WARN() << "winging it!";
|
|
||||||
setScreen(realScreen);
|
|
||||||
setVisibility(QWindow::FullScreen);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (visibility == QWindow::Windowed && SettingsComponent::Get().value(SETTINGS_SECTION_MAIN, "forceAlwaysFS").toBool())
|
if (visibility == QWindow::Windowed && SettingsComponent::Get().value(SETTINGS_SECTION_MAIN, "forceAlwaysFS").toBool())
|
||||||
{
|
{
|
||||||
QLOG_WARN() << "Forcing re-entering fullscreen because of forceAlwaysFS setting!";
|
QLOG_WARN() << "Forcing re-entering fullscreen because of forceAlwaysFS setting!";
|
||||||
|
Loading…
Reference in New Issue
Block a user