Changeset ea9024d7 in mainline


Ignore:
Timestamp:
2022-05-19T08:31:50Z (2 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8b22d44
Parents:
ad698f4
git-author:
Jiri Svoboda <jiri@…> (2022-05-18 17:31:38)
git-committer:
Jiri Svoboda <jiri@…> (2022-05-19 08:31:50)
Message:

window→rect needs to be kept up to date

This caused an error if window was resized, maximized, unmaximized, due
to size mismatch between the restored window size and restored
window→rect, which was taken from old_rect, which was taken from
window→rect before maximization, which was the size when the window
was created, as opposed to the current size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/window.c

    rad698f4 rea9024d7  
    587587                        goto error;
    588588#endif
    589 
    590589                mem_gc_retarget(window->mgc, &win_params.rect, &win_alloc);
    591590
     
    594593        }
    595594
     595        window->rect = nrect;
    596596        ui_wdecor_set_rect(window->wdecor, &nrect);
    597597        ui_wdecor_paint(window->wdecor);
Note: See TracChangeset for help on using the changeset viewer.