Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game running only in window mode unless -window switch is used #739

Open
mihaimdinca opened this issue Jan 31, 2025 · 2 comments
Open

Game running only in window mode unless -window switch is used #739

mihaimdinca opened this issue Jan 31, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@mihaimdinca
Copy link

When I launch the program (linux build) running natively on Batocera Linux, using the .sh file, ut launches in window mode not full screen - it does occupy the whole screen but it has a fine white border and the mouse cursor appears on screen and does not control camera unless the mouse leftclick btn is pressed and held. I used the -window parameter/ switch when launching the program as I wanted to see if there is the same effect - with it, it launched in full screen. I guess this is good for now as it can be used like this but it is the opposite of what the parameter should do.

@mihaimdinca mihaimdinca added the bug Something isn't working label Jan 31, 2025
@Try
Copy link
Owner

Try commented Feb 2, 2025

Hi, @mihaimdinca and thanks for report!

So, you basically saying that effect on -window is inverted on Batocera ?
I've reviewed our X11 code:

  • Engine tracks full-screen windows locally, since on some linux'es query window state takes too much CPU-time.
  • Then toggling window/full-screen is implemented via _NET_WM_STATE_FULLSCREEN + _NET_WM_STATE_TOGGLE

I don't know, why -window can cause the game to run in full-screen. This flag is essentially a nop in X11 and should leave window in default state.

Out of curiosity: if in marvin mode you press F3, toes it perform the toggle?

@mihaimdinca
Copy link
Author

It does. F3 causes the white border and mouse pointer to appear on the screen, another press and they disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants