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] Fix minimize to tray (silent start) option #1438

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

proninyaroslav
Copy link
Contributor

@proninyaroslav proninyaroslav commented Oct 25, 2024

According to the window_manager documentation, to start a window in hidden mode, we need to use gtk_widget_realize instead of gtk_widget_show to create the window widget. But since Flutter 3.24, this is broken (I checked and it is indeed broken) leanflutter/window_manager#179 (comment). The solution is to call gtk_widget_hide immediately after calling fl_register_plugins. In this case, the window is correctly minimized. I demonstrated the window operation with and without the minimize to tray option on the video (build and run steps are cut off).

screencast.mp4

Close #1437

@hiddify-com hiddify-com merged commit 0144cdd into hiddify:main Oct 29, 2024
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.

Silent mode (start minimized) is broken on Linux
2 participants