1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 17:37:35 +00:00

CatDog: Remove global menu and add context menu

There was no way to close catdog since it relied on global menus, this
adds a context menu for opening the about dialog and quitting.

Fixes #7252
This commit is contained in:
Marcus Nilsson 2021-05-18 19:12:05 +02:00 committed by Linus Groh
parent 9c963fa17b
commit e5367c13d8
3 changed files with 18 additions and 9 deletions

View file

@ -137,3 +137,9 @@ void CatDog::track_cursor_globally()
set_global_cursor_tracking(true);
GUI::WindowServerConnection::the().set_global_cursor_tracking(window_id, true);
}
void CatDog::context_menu_event(GUI::ContextMenuEvent& event)
{
if (on_context_menu_request)
on_context_menu_request(event);
}