Window width and height size is reset to an invalid small size after demaximizing on startup

Bug #2060159 reported by Jeff Fortin Tam
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HomeBank
Fix Released
Low
Maxime DOYEN

Bug Description

With Homebank 5.7.4 (or any previous version) running against GTK+ 3.24.41 in Fedora 39 (under Wayland, but also if running with "GDK_BACKEND=x11 homebank"):

1. Open an account's transactions list dialog, notice the width and height of that window, which normally get remembered and restored on startup
2. Maximize the window
3. Close Homebank
4. Launch Homebank, and reopen that account's transactions list window, which shows up correctly maximized
5. Demaximize the window

Result: the window gets demaximized to an invalid window size that does not match my previously set width and height for that window; in my case, it then shows up as 1224x277 pixels, for some reason.

Expected result: when demaximizing, it should demaximize to the previously saved width and height.

Note that the bug does not occur if the window was not maximized while closing Homebank.

My guess is that maybe you are resetting the width and height values when saving the maximized property, or not restoring them at the same time as the maximization state, or something like that?

See https://developer.gnome.org/documentation/tutorials/save-state.html for some reference and examples of how this interaction is generally handled.

Maxime DOYEN (mdoyen)
Changed in homebank:
assignee: nobody → Maxime DOYEN (mdoyen)
importance: Undecided → Low
milestone: none → 5.7.5
status: New → Confirmed
Maxime DOYEN (mdoyen)
Changed in homebank:
status: Confirmed → In Progress
Maxime DOYEN (mdoyen)
Changed in homebank:
status: In Progress → Fix Committed
Maxime DOYEN (mdoyen)
Changed in homebank:
milestone: 5.7.5 → 5.8
Revision history for this message
Maxime DOYEN (mdoyen) wrote :

Hello,

please test fix:
- https://www.gethomebank.org/public/binaries/HomeBank-58rc_fix2.zip
- replace the executable into Homebank 5.8rc install folder by the one within the zip file.

Maxime DOYEN (mdoyen)
Changed in homebank:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.