diff --git a/src/Platform/ScreenedApplication.hpp b/src/Platform/ScreenedApplication.hpp index 329070da5..6cf03ddb9 100644 --- a/src/Platform/ScreenedApplication.hpp +++ b/src/Platform/ScreenedApplication.hpp @@ -44,12 +44,14 @@ template void BasicScreen::mouseMoveEvent(MouseM template BasicScreenedApplication& BasicScreenedApplication::addScreen(BasicScreen& screen) { Containers::LinkedList>::insert(&screen); if(frontScreen() == &screen) screen.focusEvent(); + Application::redraw(); return *this; } template BasicScreenedApplication& BasicScreenedApplication::removeScreen(BasicScreen& screen) { screen.blurEvent(); Containers::LinkedList>::erase(&screen); + Application::redraw(); return *this; } @@ -60,6 +62,7 @@ template BasicScreenedApplication& BasicScreened frontScreen()->blurEvent(); Containers::LinkedList>::move(&screen, frontScreen()); screen.focusEvent(); + Application::redraw(); return *this; }