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

LInux - setDefaultSize needed #522

Open
alkebuware opened this issue Jan 3, 2025 · 0 comments
Open

LInux - setDefaultSize needed #522

alkebuware opened this issue Jan 3, 2025 · 0 comments

Comments

@alkebuware
Copy link

I'm observing that on Linux await windowManager.setResizable(false); disables our ability to use await setSize(size).

If I reenable resizing, set the size, then disable resizing like below:

await windowManager.setResizable(true);
await windowManager.setSize(size);
await windowManager.setResizable(true);

then the window always reverts to what I set in my_application.cc via gtk_window_set_default_size(window, width, height);

It'd be great if we could add a Linux only setDefaultSize method to the plugin that would allows us to set gtk_window_set_default_size from Flutter, as setSize(size) doesn't work when setResizable(false)

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