mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
WindowServer/GMenu: Adjust the popup position to fit the window inside the screen
Rather than passing a "top_anchored" bool. Fixes #22.
This commit is contained in:
parent
a4b0dfff43
commit
f55965b5e8
9 changed files with 20 additions and 17 deletions
|
@ -27,7 +27,7 @@ TaskbarButton::~TaskbarButton()
|
|||
|
||||
void TaskbarButton::context_menu_event(GContextMenuEvent&)
|
||||
{
|
||||
ensure_menu().popup(screen_relative_rect().location(), /* top_anchored */ false);
|
||||
ensure_menu().popup(screen_relative_rect().location());
|
||||
}
|
||||
|
||||
GMenu& TaskbarButton::ensure_menu()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue