-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
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
can't fullscreen on Linux? #140
Comments
set_video_mode is actually not implemented on any platform whatsoever; see issue #6. The reason fullscreen doesn't work on Linux is because the developers haven't yet figured out a way to do it that satisfies them. They don't like the SDL way because it kills alt-tab. |
I'm on my phone and I couldn't find the code in godot that deals with SDL (does it currently use SDL?), but what they want is probably SDL_WINDOW_FULLSCREEN_DESKTOP. It is a much more cooperative mode on Mac and Windows at least, I'm suspecting it would behave better on Linux too. |
Godot doesn't use SDL, but they often look to SDL to see what it does for certain things. |
I'd rather Alt-Tab be killed, than not have fullscreen capability On Wed, Apr 9, 2014 at 12:38 PM, TiZ-EX1 [email protected] wrote:
|
To be honest, I'd rather the same as well. That kind of issue is fairly prevalent in Linux, but that's one reason that people sometimes run their games in separate X servers. |
I know this is completely off-topic, so feel free to dismiss it, but is there a reason godot doesn't use SDL2, or would they be interested in someone porting it to use SDL? I realize it was first started when SDL1.2 was the only option, but SDL2 has improved tremendously, and is licensed more liberally. |
There is not really that much platform dependent code in Godot to justify On Wed, Apr 9, 2014 at 2:03 PM, Jørgen P. Tjernø
|
Juan, have you looked at how SDL2 handles fullscreen (and other Linux On Wed, Apr 9, 2014 at 1:34 PM, reduz [email protected] wrote:
|
I think honestly writing platform specific code in general isn't difficult It's just pretty much X11 that is a nightmare to deal with, because even if On Wed, Apr 9, 2014 at 3:15 PM, adolson [email protected] wrote:
|
In any case, if any of you guys want to give a look at this and send me a On Wed, Apr 9, 2014 at 3:55 PM, Juan Linietsky [email protected] wrote:
|
I've started working on this this evening : https://github.com/Paulloz/godot/tree/x11-fullscreen @reduz, haven't found any styleguide down here so if there are coding rules that I've ignored, my apologies ;) |
Finally works! |
…orted [4.4 backport] Assorted fixes
If I check off the fullscreen option in Project Settings, then run the game, it doesn't actually run in fullscreen mode. Tested with the platformer demo, as well as my own project.
I tried checking the list of fullscreen video modes, and it returns an empty array:
Possibly related to this, OS.set_video_mode() doesn't seem to do anything - doesn't resize the window and doesn't allow me to toggle fullscreen.
The text was updated successfully, but these errors were encountered: