Images 💾

Last commit ⭐

commit 11cb7c7b2807cb5bcc95c5853f909e441b8dec1b
Author:     Sam Atkins <atkinssj@serenityos.org>
AuthorDate: Tue Jul 26 16:45:07 2022 +0100
Commit:     Linus Groh <mail@linusgroh.de>
CommitDate: Wed Jul 27 00:01:42 2022 +0100

    WindowServer: Ensure windows are wide enough to show title buttons :^)
    
    Previously, windows without a defined minimum size (or one produced from
    the minimum sizes of their contents) would be shrunk down to 0 x 0,
    which makes the title buttons stick out the side and become impossible
    to interact with.
    
    This patch uses the theme metrics to calculate a minimum size that is as
    small as possible while still keeping the title buttons and app icon
    usable. This is combined with the minimum size requested by the app
    itself.
    
    Switching themes automatically updates the calculated minimum sizes for
    all existing windows. As noted, if the new theme has narrower title
    buttons then the old minimum is kept, but this shouldn't be noticeable
    unless you're looking for it.