SerenityOS build: Wednesday, December 18
Images 💾⌗
- serenity-x86_64-20241218-a6be79d.img.gz (Raw image, 240.1 MiB)
Last commit ⭐⌗
commit a6be79d977554d4688584befd656c19e8fde5326
Author: Sönke Holz <sholz8530@gmail.com>
AuthorDate: Sun Dec 8 00:29:21 2024 +0100
Commit: Nico Weber <thakis@chromium.org>
CommitDate: Tue Dec 17 19:05:49 2024 -0500
WindowServer: Handle shifted submenus during safe submenu navigation
The old calculation was unnecessarily complicated and didn't handle
horizontally or vertically shifted menus correctly.
To determine the two triangle corners at the submenu, we can simply
use the submenu's rect() and subtract the position of the parent menu
to get the correct relative coordinates.
This fixes the case when the menu is shifted vertically.
If the submenu is shifted horizontally, we need to use the opposite
corners of the window rect.
Other builds