[Linux] Implement Window::SetResizable without breaking programmatic resizing
まだ誰も着手していません。
評価
調査の方向性
Start in src/platform/linux/window_linux.cpp and inspect the Window::SetResizable(), SetSize(), and SetContentSize() paths alongside their GTK window handling. Review the linked window_manager issues for the described GTK behavior, then verify that disabling user resizing still allows programmatic size changes while preserving the intended fixed-size behavior.
索引モデルが issue の本文から書いたものです。
説明
Window::SetResizable() is a stub on Linux (src/platform/linux/window_linux.cpp), so setResizable(false) does nothing there.
Implementing it with gtk_window_set_resizable() runs into a known GTK behaviour: a non-resizable GtkWindow is sized from its default size or size request, so later SetSize() / SetContentSize() calls stop taking effect. The implementation needs to keep programmatic resizing working while the user can't resize. One option is to pin min = max size hints to the requested size instead of toggling resizable, or to update the default size together with the size.
Background, from window_manager (moving onto nativeapi in 0.6.0):
- leanflutter/window_manager#522: setSize() ignored after setResizable(false) (also #238)
- leanflutter/window_manager#523: a PR that added a Linux-only
setDefaultSizeto work around it
- 主要言語
- C++
- スター
- 34
- フォーク
- 7
- 平均マージ
- 3日 1時間
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
libnativeapi/nativeapi のほかの issue
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
libnativeapi/nativeapi#81 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
libnativeapi/nativeapi#80 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
libnativeapi/nativeapi#79 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
libnativeapi/nativeapi#78 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
libnativeapi/nativeapi#77 ·
libnativeapi/nativeapi の issue をすべて見る
似ている issue
-
ai_reviewed
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ydb-platform/ydb#53869 · コメント 3 件 ·
-
bug cert blocker needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
project-chip/connectedhomeip#74373 ·
-
upstream update
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
conan-io/conan-center-index#31035 ·
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
vllm-project/vllm-ascend#17329 ·