Skip to content

Window properties don't match what was requested in Project.xml #1932

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

Open
ACrazyTown opened this issue Mar 19, 2025 · 0 comments
Open

Window properties don't match what was requested in Project.xml #1932

ACrazyTown opened this issue Mar 19, 2025 · 0 comments

Comments

@ACrazyTown
Copy link
Contributor

Haxe 4.3.6, Lime 8.2.2, happens on both Windows native and Hashlink

To reproduce:

  • Create a sample project with the following window properties in Project.xml:
    • <window borderless="true" resizable="true"/>
  • After the window is created, try tracing some of the window parameters. The output will not match the values we've set:
trace(window.borderless); // false, even though we've set this to true in the Project.xml
trace(window.resizable); //  false, even though we've set this to true in the Project.xml
trace(window.visible); // false, even though this is true by default and the window is visible

This might be true for other parameters as well, these are just the ones I've tested. Seems like only a few private variables for the getters are set upon window creation, while the others aren't and keep their default value of false:

lime/src/lime/ui/Window.hx

Lines 167 to 174 in a9f72d6

__width = 0;
__height = 0;
__fullscreen = false;
__scale = 1;
__x = 0;
__y = 0;
__title = Reflect.hasField(__attributes, "title") ? __attributes.title : "";
id = -1;

@ACrazyTown ACrazyTown changed the title Some window properties not properly updated Window properties don't match what was requested in Project.xml Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant