From: Mikko Rasa Date: Wed, 12 Nov 2014 20:45:24 +0000 (+0200) Subject: Set window title to application name by default X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=e5e2d5b41f8977bc60eca5300f3da6efbbd5786a;p=libs%2Fgui.git Set window title to application name by default --- diff --git a/source/graphics/window.cpp b/source/graphics/window.cpp index 658eb26..ebdc578 100644 --- a/source/graphics/window.cpp +++ b/source/graphics/window.cpp @@ -1,3 +1,4 @@ +#include #include "display.h" #include "window.h" #include "window_private.h" @@ -43,6 +44,10 @@ void Window::init() display.add_window(*this); display.check_error(); + + const string &app_name = Application::get_name(); + if(!app_name.empty()) + set_title(app_name); } Window::~Window()