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
commit e5367c13d8
Notes: sideshowbarker 2024-07-19 17:27:28 +09:00
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);
}