+#include <msp/core/application.h>
#include "display.h"
#include "window.h"
#include "window_private.h"
display.add_window(*this);
display.check_error();
+
+ const string &app_name = Application::get_name();
+ if(!app_name.empty())
+ set_title(app_name);
}
Window::~Window()
display.remove_window(*this);
- if(options.fullscreen)
+ if(options.fullscreen && visible)
display.restore_mode();
delete priv;
void Window::reconfigure(const WindowOptions &opts)
{
bool fullscreen_changed = (opts.fullscreen!=options.fullscreen);
- resizing = (opts.width!=options.width || opts.height!=options.height);
+ if(opts.width!=options.width || opts.height!=options.height)
+ resizing = true;
if(visible)
{