jellyfin / jellyfin-media-player

Jellyfin Desktop Client
GNU General Public License v2.0
3.19k stars 317 forks source link

Stuck in full screen #94

Open DesertCookie opened 3 years ago

DesertCookie commented 3 years ago

Jellyfin Media Player is stuck in full screen after I exited it via ALT+F4 while watching a movie in full screen.

I've tried restarting, uninstalling, manually disabling the fullscreen setting in the client options, starting a movie and going back to windowed mode that way, F11, ALT+ENTER.

This occurred on Windows 10 20H2 with JMP v1.6 using the Windows installer. See my JellyfinMediaPlayer.log.


Solution: Delete jellyfinmediaplayer.conf in %APPDATA%/Local/JellyfinMediaPlayer.

Please look into why this happened to prevent future users from having to manually delete the config file. Cheers.

rhdata1 commented 3 years ago

Search for "jellyfinmediaplayer.conf" file in C drive and open the file in notepad when you find the file. Find the "forceFSScreen": in "main" section and change it's value from "DISPLAY2" to "DISPLAY1". I also was facing the same issue for last few days and just an hour ago figured out the problem and solved it. Hope it helps. thanks. Capture

foxlet commented 2 years ago

Are there any fixes for this? It still occurs in the latest stable version (v1.6.1).

davidmurdoch commented 2 years ago

Not sure if I have the same problem since it's always Fullscreen for me, except for the Windows Taskbar at the bottom. Is there supposed to be be way of exiting the app (traditionally via an X in the upper right corner in Windows)? Alt+F4 or right clicking the taskbar entry and clicking Close Window seem like an odd thing.

DexLuther commented 2 years ago

I'm having the same issue.

Jellyfin Server 1.7.7 Jellyfin Media Player 1.7.0-Pre4

The fullscreen checkbox seems to automatically revert to being checked (forceFSScreen:true)

After trying all the above mentioned possibilities the log show this:

2022-06-03 03:02:00 [ DEBUG ] KonvergoWindow.cpp @ 479 - QWindow visibility set to QWindow::Windowed 
2022-06-03 03:02:00 \[ WARN  \] KonvergoWindow.cpp @ 487 - winging it! 
2022-06-03 03:02:00 \[ DEBUG \] KonvergoWindow.cpp @ 596 - resize event: QSize(1938, 1127) 
2022-06-03 03:02:00 \[ DEBUG \] KonvergoWindow.cpp @ 596 - resize event: QSize(1920, 1080) 
2022-06-03 03:02:00 \[ DEBUG \] KonvergoWindow.cpp @ 479 - QWindow visibility set to QWindow::FullScreen 
2022-06-03 03:02:00 \[ DEBUG \] KonvergoWindow.cpp @ 257 - Restoring geo: QRect(4110,129 982x551) 
2022-06-03 03:02:00 \[ DEBUG \] KonvergoWindow.cpp @ 209 - Load FullScreen geo... 
2022-06-03 03:02:17 \[ DEBUG \] KonvergoWindow.cpp @ 294 - setting fullscreen =  false 
2022-06-03 03:02:17 \[ DEBUG \] KonvergoWindow.cpp @ 479 - QWindow visibility set to QWindow::Windowed 
2022-06-03 03:02:17 \[ WARN  \] KonvergoWindow.cpp @ 487 - winging it! 
2022-06-03 03:02:17 \[ DEBUG \] KonvergoWindow.cpp @ 596 - resize event: QSize(1938, 1127) 
2022-06-03 03:02:17 \[ DEBUG \] KonvergoWindow.cpp @ 596 - resize event: QSize(1920, 1080) 
2022-06-03 03:02:17 \[ DEBUG \] KonvergoWindow.cpp @ 479 - QWindow visibility set to QWindow::FullScreen 
2022-06-03 03:02:17 \[ DEBUG \] KonvergoWindow.cpp @ 257 - Restoring geo: QRect(4110,129 982x551) 
2022-06-03 03:02:17 \[ DEBUG \] KonvergoWindow.cpp @ 209 - Load FullScreen geo... 
2022-06-03 03:02:18 \[ DEBUG \] KonvergoWindow.cpp @ 294 - setting fullscreen =  false 
2022-06-03 03:02:18 \[ DEBUG \] KonvergoWindow.cpp @ 479 - QWindow visibility set to QWindow::Windowed 
2022-06-03 03:02:18 \[ WARN  \] KonvergoWindow.cpp @ 487 - winging it! 
2022-06-03 03:02:18 \[ DEBUG \] KonvergoWindow.cpp @ 596 - resize event: QSize(1938, 1127) 
2022-06-03 03:02:18 \[ DEBUG \] KonvergoWindow.cpp @ 596 - resize event: QSize(1920, 1080) 
2022-06-03 03:02:18 \[ DEBUG \] KonvergoWindow.cpp @ 479 - QWindow visibility set to QWindow::FullScreen 
2022-06-03 03:02:18 \[ DEBUG \] KonvergoWindow.cpp @ 257 - Restoring geo: QRect(4110,129 982x551) 
2022-06-03 03:02:18 \[ DEBUG \] KonvergoWindow.cpp @ 209 - Load FullScreen geo... 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 294 - setting fullscreen =  false 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 479 - QWindow visibility set to QWindow::Windowed 
2022-06-03 03:02:20 \[ WARN  \] KonvergoWindow.cpp @ 487 - winging it! 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 596 - resize event: QSize(1938, 1127) 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 596 - resize event: QSize(1920, 1080) 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 479 - QWindow visibility set to QWindow::FullScreen 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 257 - Restoring geo: QRect(4110,129 982x551) 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 209 - Load FullScreen geo... 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 294 - setting fullscreen =  false 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 479 - QWindow visibility set to QWindow::Windowed 
2022-06-03 03:02:20 \[ WARN  \] KonvergoWindow.cpp @ 487 - winging it! 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 596 - resize event: QSize(1938, 1127) 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 596 - resize event: QSize(1920, 1080) 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 479 - QWindow visibility set to QWindow::FullScreen 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 257 - Restoring geo: QRect(4110,129 982x551) 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 209 - Load FullScreen geo... 
2022-06-03 03:02:20 \[ INFO  \] JS: Sending web socket message: KeepAlive 
2022-06-03 03:02:20 \[ INFO  \] JS: Received KeepAlive from server. 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 294 - setting fullscreen =  false 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 479 - QWindow visibility set to QWindow::Windowed 
2022-06-03 03:02:20 \[ WARN  \] KonvergoWindow.cpp @ 487 - winging it! 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 596 - resize event: QSize(1938, 1127) 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 596 - resize event: QSize(1920, 1080) 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 479 - QWindow visibility set to QWindow::FullScreen 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 257 - Restoring geo: QRect(4110,129 982x551) 
2022-06-03 03:02:20 \[ DEBUG \] KonvergoWindow.cpp @ 209 - Load FullScreen geo... 
2022-06-03 03:02:21 \[ DEBUG \] KonvergoWindow.cpp @ 294 - setting fullscreen =  false 
2022-06-03 03:02:21 \[ DEBUG \] KonvergoWindow.cpp @ 479 - QWindow visibility set to QWindow::Windowed 
2022-06-03 03:02:21 \[ WARN  \] KonvergoWindow.cpp @ 487 - winging it! 
2022-06-03 03:02:21 \[ DEBUG \] KonvergoWindow.cpp @ 596 - resize event: QSize(1938, 1127) 
2022-06-03 03:02:21 \[ DEBUG \] KonvergoWindow.cpp @ 596 - resize event: QSize(1920, 1080) 
2022-06-03 03:02:21 \[ DEBUG \] KonvergoWindow.cpp @ 479 - QWindow visibility set to QWindow::FullScreen 
2022-06-03 03:02:21 \[ DEBUG \] KonvergoWindow.cpp @ 257 - Restoring geo: QRect(4110,129 982x551) 
2022-06-03 03:02:21 \[ DEBUG \] KonvergoWindow.cpp @ 209 - Load FullScreen geo... 
2022-06-03 03:02:50 \[ INFO  \] JS: Sending web socket message: KeepAlive 
2022-06-03 03:02:50 \[ INFO  \] JS: Received KeepAlive from server. 
2022-06-03 03:03:20 \[ INFO  \] JS: Sending web socket message: KeepAlive 
2022-06-03 03:03:20 \[ INFO  \] JS: Received KeepAlive from server. 
2022-06-03 03:03:50 \[ INFO  \] JS: Sending web socket message: KeepAlive 
2022-06-03 03:03:50 \[ INFO  \] JS: Received KeepAlive from server. 
2022-06-03 03:04:18 \[ DEBUG \] KonvergoWindow.cpp @ 479 - QWindow visibility set to QWindow::Hidden 
2022-06-03 03:04:18 \[ DEBUG \] KonvergoWindow.cpp @ 596 - resize event: QSize(1920, 1080)

The only solution is the one that @mekemahmud suggested, which is to edit the jellyfinmediaplayer.conf file. The file appears to be located in Local appdata and did not appear on searches (at least for me it didn't), but can be found by going to %localappdata%/Jellyfinmediaplayer/ or by simply opening %localappdata%/JellyfinMediaPlayer/jellyfinmediaplayer.conf in notepad++

iwalton3 commented 2 years ago

Well there really is just code in here that sets the view to fullscreen on Windows in some conditions. Not sure why I have never had it happen in testing...

#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
iwalton3 commented 2 years ago

This change will be in this next hotfix. Please let me know if this fixes the issue.

DexLuther commented 2 years ago

Seems fixed. Everything I've tried to break it fails to work, and I'm able to pop in and out of fullscreen using any of the shortcuts even having closed the app while in fullscreen.

tevenfeng commented 2 years ago

Emm I'm still get the same problem on Windown 11 with Jellyfin Media Player version 1.7.1, even after I uninstalled it and removed all the config files in %APPDATA% and reinstalled it. It always open in fullscreen mode, and alt+enter does nothing, and the titlebar is missing.

tevenfeng commented 2 years ago

Emm I'm still get the same problem on Windown 11 with Jellyfin Media Player version 1.7.1, even after I uninstalled it and removed all the config files in %APPDATA% and reinstalled it. It always open in fullscreen mode, and alt+enter does nothing, and the titlebar is missing.

I've found out what the problem is. It may be related to the scaling ratio in windows setting. My laptop has a 2k display so I use 150% scaling for display. And jellyfin media player could not handle this situation correctly, making the titlebar out of the display so I misunderstood that it was stuck in fullscreen mode. I reset to 100% scaling, resize the jellyfin window and then change scaling back to 150%, and finallly it worked perfectly.

tevenfeng commented 2 years ago

Emm I'm still get the same problem on Windown 11 with Jellyfin Media Player version 1.7.1, even after I uninstalled it and removed all the config files in %APPDATA% and reinstalled it. It always open in fullscreen mode, and alt+enter does nothing, and the titlebar is missing.

I've found out what the problem is. It may be related to the scaling ratio in windows setting. My laptop has a 2k display so I use 150% scaling for display. And jellyfin media player could not handle this situation correctly, making the titlebar out of the display so I misunderstood that it was stuck in fullscreen mode. I reset to 100% scaling, resize the jellyfin window and then change scaling back to 150%, and finally it worked perfectly.

Tychus commented 1 year ago

Can confirm this is actually a scaling issue. Happened to me on windows 11 (100% scaling 2K) changed scaling to 125% the bar showed up maxed the window then scaled back to 100% all good now. First time i ever get this issue nothing changed just randomly after waking up from sleep.

DexLuther commented 1 year ago

Can confirm this is actually a scaling issue. Happened to me on windows 11 (100% scaling 2K) changed scaling to 125% the bar showed up maxed the window then scaled back to 100% all good now. First time i ever get this issue nothing changed just randomly after waking up from sleep.

Completely different issue. This issue was litterally that the fullscreen check box didn't update the config correctly, which either was always stuck in fullscreen, or wouldn't go into fullscreen. It was fixed a while ago, and this issue should have probably been closed.

iwalton3 commented 1 year ago

Closing fixed and stale issue.

larkwiot commented 1 year ago

Having this issue too, except neither editing nor deleting that configuration file fixes it. Had to uninstall and delete both directories in AppData\Local (opened another issue because that should have been done automatically with the uninstallation https://github.com/jellyfin/jellyfin-media-player/issues/506) to get it back in windowed mode.

larkwiot commented 8 months ago

Closing fixed and stale issue.

This issue is not fixed as of 1.9.1

Renari commented 2 months ago

Just had this start happening today on 1.11.1, tried a bunch of things in this thread and was unable to resolve the issue. Did an uninstall, deleted all configs and reinstalled and now it lets me exit fullscreen again.

Renari commented 2 months ago

@iwalton3 Would you reopen this since it seems this is still occurs.

Renari commented 2 months ago

Killing the JMP process while watching something in fullscreen did not reproduce the issue. So I'm in the dark atm since after the uninstall I can't reproduce the issue anymore.