1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Converted the context menu to a Layer

This fixes a bug with the captured background being wrong when using
double buffering. Also it ensures that for example the clock in the
status bar is updated when the context menu is open.
This commit is contained in:
Maarten ter Huurne
2013-08-11 23:46:04 +02:00
parent 945e29986a
commit 76117663ff
6 changed files with 238 additions and 169 deletions

View File

@@ -101,7 +101,7 @@ Menu::Menu(GMenu2X *gmenu2x, Touchscreen &ts)
orderLinks();
btnContextMenu->setPosition(gmenu2x->resX - 38, gmenu2x->bottomBarIconY);
btnContextMenu->setAction(std::bind(&GMenu2X::contextMenu, gmenu2x));
btnContextMenu->setAction(std::bind(&GMenu2X::showContextMenu, gmenu2x));
}
Menu::~Menu() {
@@ -306,7 +306,7 @@ bool Menu::handleButtonPress(InputManager::Button button) {
incSectionIndex();
return true;
case InputManager::MENU:
gmenu2x->contextMenu();
gmenu2x->showContextMenu();
return true;
default:
return false;