-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Changed default window style to be single window #38647
Conversation
When you run the editor in 4.0 are the docks floating by default? For me they aren't so I'm wondering what is going on. I'm on Windows 10, maybe the behaviour is different between OS'? At any rate, it seems like there is more going on here than is apparent at first. |
Since multiple window support is one of Godot 4's largest features, it'd be a shame to turn it off on platforms where it's supported. Keep in mind it allows other things than floating docks, such as:
|
It's not removing the functionality. The functionality is still there, it's just making it not on by default, as it wasn't supposed to be on by default based on what reduz said. @clayjohn Yes, when I run the editor (w/o this change) - the docks are floating by default. By changing these two lines, it turns it off by default. I'm on Windows 10 as well btw. EDIT: I was mistaking floating docks and floating windows. Floating windows IS on by default. (Separate windows from Godot that is) |
I don't think that's what @reduz is referring to here. He mentions the floating docks, i.e. the possibility to have the docks in separate windows. In the current master branch, docks are not in separate windows by default. They can be made floating, but that's not the default, which is what Juan refers to. What this setting enables is to prevent having anything in external windows, and especially popup dialogs. That's not meant to be the default, popup dialogs are meant to be in external windows, unless you use a tiling VM, which is why this setting was added. |
I would very much prefer having all pop-up windows be application provided by default. The separate pop-up windows are very buggy for me and seem far less elegant than the 3.x pop-up windows. I don't know why people prefer using their WM for pop-up windows, but single-window should be the default. There's also the fact that controlling where windows go isn't possible in Wayland. I read some discussions a few years ago that this was by design and is why the Wine devs will never support Wayland except via XWayland. This may cause problems for Godot, since I noticed that the buttons on the top-left corner open up separate borderless windows right now.
|
@Calinou Right - this is the setting that allows you to move the stuff off Godot's application window. Pre-4.0, you can't do that. Changing this setting makes it behave in that exact same manner. I admit - I did slightly misread what reduz was saying with the popups vs docks thing, but this setting affects both of them. At the end of the day, do w/e ya'll want. This PR is here if you want to accept it or not. |
It's buggy because it's a work in progress, but having the bugs present in the master branch should be an incentive for relevant developers to figure out how to fix the bugs. Further down in the development we can assess which behavior we want as default, but for now it's good to eat our own dog food. |
That makes a lot of sense, now isn't the time for this. I'm going to close this, but I highly encourage @Duroxxigar to rebase and re-open this PR once 4.0 is in an alpha/beta state, since I do still think that this change should be made for 4.0's release. P.S. We don't really have a label for "we'll get back to this later" but I don't think leaving it open is a good idea, we should try to minimize the amount of open PRs. I guess "salvageable" works. |
Changes the default setting for the window style to be single window, which is current (pre-4.0) Godot workflow. I imagine it was a setting that just forgot to get changed back to true after work on it was completed.
https://twitter.com/reduzio/status/1235887984060362753