From e5e2d5b41f8977bc60eca5300f3da6efbbd5786a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 12 Nov 2014 22:45:24 +0200 Subject: [PATCH] Set window title to application name by default --- source/graphics/window.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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() -- 2.45.2