Skip to content

linux: add set_default_size method - #523

Closed
alkebuware wants to merge 2 commits into
leanflutter:mainfrom
alkebuware:main
Closed

alkebuware wants to merge 2 commits into
leanflutter:mainfrom
alkebuware:main

Conversation

@alkebuware

@alkebuware alkebuware commented Jan 3, 2025 •

Copy link
Copy Markdown

Adds a method for us to call gtk_window_set_default_size from Flutter. This is a Linux only API.

This resolves issue #522

@lijy91

lijy91 commented Sep 21, 2026

Copy link
Copy Markdown
Member

Thank you for the PR, and sorry it sat here so long. window_manager 0.5.x is no longer maintained: from 0.6.0 window_manager is rebuilt on nativeapi (Flutter package: nativeapi), and the platform code in this repo's main branch goes away, so I'm closing PRs against it.

On Linux, nativeapi's Window::SetResizable is not implemented yet, and SetContentSize already calls gtk_window_set_default_size while the window is unmapped. If fixed-size windows still can't be resized from code there, please open an issue or PR in nativeapi.

@lijy91

lijy91 commented Sep 21, 2026

Copy link
Copy Markdown
Member

Follow-up: this is now tracked in libnativeapi/nativeapi#56. If you'd like to port the fix there, it's very welcome.

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

Successfully merging this pull request may close these issues.

3 participants