Rafostar / clapper

Level up your video experience with a modern and user-friendly media player.
https://rafostar.github.io/clapper/
GNU General Public License v3.0
774 stars 37 forks source link

Put Window into Center instead of the screen corner when exiting fullscreen when Clapper Starts in Fullscreen #493

Open iWisp360 opened 4 days ago

iWisp360 commented 4 days ago

I use almost every time Clapper in full screen, but when it opens again, it starts in full screen, I simply toggle it to windowed mode, but the player places in the corner of the screen.

An option to disable start in full screen or place the player on the center when the player doesn't know it's previous windowed position would fix it.

Using Nvidia GPU with Gnome Wayland

Rafostar commented 1 day ago

place the player on the center when the player doesn't know it's previous windowed position would fix it (...) with Gnome Wayland

Unlike Xorg, Wayland does not allow for app itself to set its window position. No placement is saved or decided by app (since its not do-able on Wayland). The only thing Clapper does (because it can) is to request a window size when started windowed.

I use almost every time Clapper in full screen, but when it opens again, it starts in full screen, I simply toggle it to windowed mode, but the player places in the corner of the screen.

In order to have less options, current behavior is that fullscreen state is restored on next startup. Basically, if you close while fullscreened, Clapper will start in fullscreen next time you run it.

I use almost every time Clapper in full screen (...) An option to disable start in full screen

Since you mention that you use the player "almost every time in fullscreen", this means that when you close it (with either "q" shortcut or "X" button) it will start fullscreen again just as you use it normally. But... you wish for an option to disable startup in fullscreen. I am kinda lost here. Can you elaborate?

I simply toggle it to windowed mode, but the player places in the corner of the screen.

If I am not wrong on your intentions and what you want is simply to continue to startup in fullscreen, but have window manager to center it when unfullscreened, then I think this is more of a mutter issue.

Why I think this belongs to mutter? Because it has an center-new-windows option that sadly does not seem to work if window starts fullscreen.