[Linux] Implement Window::SetResizable without breaking programmatic resizing
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 64/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- C++
- Estrellas
- 34
- Forks
- 7
- Merge medio
- 3 d 1 h
- PR fusionados (30 d)
- 1
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de libnativeapi/nativeapi
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
libnativeapi/nativeapi#81 ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
libnativeapi/nativeapi#80 ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
libnativeapi/nativeapi#79 ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
libnativeapi/nativeapi#78 ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
libnativeapi/nativeapi#77 ·
Todos los issues de libnativeapi/nativeapi
Issues similares
-
ai_reviewed
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ydb-platform/ydb#53869 · 3 comentarios ·
-
bug cert blocker needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
project-chip/connectedhomeip#74373 ·
-
[request] tracy/0.14.1 Abiertoupstream update
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
conan-io/conan-center-index#31035 ·
-
Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
vllm-project/vllm-ascend#17329 ·