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)
{