X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/92f02a487b375ae936e7fa74b060bee9d495a106..4374783e912d1a9385a41d7649d33f19e8eb96b3:/lib/gui/ewindow.cpp diff --git a/lib/gui/ewindow.cpp b/lib/gui/ewindow.cpp index e637cf22..54a35958 100644 --- a/lib/gui/ewindow.cpp +++ b/lib/gui/ewindow.cpp @@ -43,6 +43,11 @@ void eWindow::setTitle(const std::string &string) event(evtTitleChanged); } +std::string eWindow::getTitle() const +{ + return m_title; +} + void eWindow::setFlag(int flags) { m_flags |= flags; @@ -86,6 +91,12 @@ int eWindow::event(int event, void *data, void *data2) } return 0; } + case evtTitleChanged: + /* m_visible_region contains, in contrast to m_visible_with_childs, + only the decoration. though repainting the whole decoration is bad, + repainting the whole window is even worse. */ + invalidate(m_visible_region); + break; default: break; }