On Sun, 6 Sep 2026 11:35:57 GMT, Thiago Milczarek Sayao <[email protected]> wrote:
>> modules/javafx.graphics/src/main/native-glass/gtk/glass_window.cpp line 1206: >> >>> 1204: >>> 1205: gtk_window_set_geometry_hints(GTK_WINDOW(gtk_widget), nullptr, >>> nullptr, >>> 1206: (GdkWindowHints) (GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE)); >> >> What does this function do? The >> [set_geometry_hints](https://docs.gtk.org/gtk3/method.Window.set_geometry_hints.html) >> documentation say that `geom_mask` is a "bitmask indicating which struct >> fields should be paid attention to", but `geometry` is null. > > It removes the minimum and maximum window size constraints, allowing the > window to be resized programmatically even when those constraints would > otherwise prevent it. This matches the behavior provided on other platforms. I'm just reading the documentation and it says that the flags indicate "which struct fields should be paid attention to"; however, there is no struct since you're passing in `nullptr`. This might be a case of unclear documentation, if the function works in the way how you're using it, then all is good. ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/2139#discussion_r3944113187
