mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
WindowServer: Add unadjusted position members to Menu
Used to determine Menu relationships by proxy
This commit is contained in:
committed by
Linus Groh
parent
7c9ad6cc2f
commit
6c35aac617
@@ -635,7 +635,7 @@ void Menu::do_popup(Gfx::IntPoint const& position, bool make_input, bool as_subm
|
||||
redraw_if_theme_changed();
|
||||
|
||||
constexpr auto margin = 10;
|
||||
Gfx::IntPoint adjusted_pos = position;
|
||||
Gfx::IntPoint adjusted_pos = m_unadjusted_position = position;
|
||||
|
||||
if (adjusted_pos.x() + window.width() > screen.rect().right() - margin) {
|
||||
// Vertically translate the window by its full width, i.e. flip it at its vertical axis.
|
||||
|
||||
Reference in New Issue
Block a user