You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The API function Resize works but it undoes the effects of SetSize, also noted here. This might be an intended behavior on gtk side, but I'm not sure if it is for the API.
Should this be updated so that it preserves the current size?
The text was updated successfully, but these errors were encountered:
gysddn
changed the title
Resize behavior
Resize behavior [Linux]
Sep 24, 2024
My understanding is that, it is indeed an "intended behavior". When the Window:resizable property is set to false, all resize requests get wiped, these include the calls to gtk_window_resize as well.
This works mostly fine, except the case where user changes the size of the window with mouse before setting resizable to false, this ends up reverting back the size to the last call of SetSize because that's where the internal size is updated.
Ultimately, the GdkConfigure(Resize & Move) event should update the internal size but that requires API's window object to be passed onto the gtk event, and I'm trying figure out how to do that now.
The API function
Resize
works but it undoes the effects ofSetSize
, also noted here. This might be an intended behavior ongtk
side, but I'm not sure if it is for the API.Should this be updated so that it preserves the current size?
The text was updated successfully, but these errors were encountered: