if(fullscreen_changed)
{
- hide();
+ bool was_visible = visible;
+ if(was_visible)
+ hide();
SetWindowLong(priv->window, GWL_EXSTYLE, exstyle);
SetWindowLong(priv->window, GWL_STYLE, style);
- show();
+ if(was_visible)
+ show();
}
if(options.fullscreen)