Revolutionary-Games / Thrive

The main repository for the development of the evolution game Thrive.
https://revolutionarygamesstudio.com/
Other
2.78k stars 495 forks source link

Fix window top level toggle hack that was needed for order swap #4349

Open hhyyrylainen opened 1 year ago

hhyyrylainen commented 1 year ago

Window reordering (https://github.com/Revolutionary-Games/Thrive/pull/4308) needed a hack to make it work. This code should be cleaned up to not need the hack:

        bool isSetAsToplevel = window.IsSetAsToplevel();
        window.SetAsToplevel(!isSetAsToplevel);
        window.SetAsToplevel(isSetAsToplevel);
hhyyrylainen commented 6 months ago

Should check if this hack is needed still with Godot 4.