jellyfin / jellyfin-media-player

Jellyfin Desktop Client
GNU General Public License v2.0
3.22k stars 321 forks source link

Always opens and fullscreens to first screen #572

Open kevincox opened 8 months ago

kevincox commented 8 months ago

Describe the bug

When opening jellyfin-media-player, or entering full screen mode it always goes to screen 0 rather than being placed more intelligently by the window manager.

To Reproduce Steps to reproduce the behavior:

  1. Put cursor on screen 2. (or whatever influences your window manager's placement decision).
  2. Launch the app.
  3. Notice that it goes to the first screen.

Expected behavior The window is placed according to my window-manger's logic. (In my case the screen with the mouse cursor)

To Reproduce Steps to reproduce the behavior:

  1. Move the main window to a second screen and start watching a video.
  2. Press f or click the fullscreen icon to enter full screen mode.
  3. Notice that the fullscreen window goes to the first screen.
  4. Move the fullscreen window to another display.
  5. Press Esc to exit fullscreen mode.
  6. Notice that the main window goes back to the first screen.

Expected behavior When entering and exiting fullscreen the window stays on the same screen.

Desktop (please complete the following information):

Additional context I suspect that there is some code trying to be clever about window placement that fails to consider mutli-monitor setups. However I would consider removing that code instead of trying to fix it. Window managers are very good at placing windows to match the user's expectations and preferences and it would be better to let them do their job unhindered.

TonyWhitley commented 3 months ago

I see something similar with Windows 11. It opens in the same monitor as last time (#2) but when I click the full screen icon it jumps to monitor #1. When I then click "Exit full screen" it minimises to the task bar, I have to manually move it to #2, resize it and click full screen again.

Jellyfin Media Player 1.11.1