CtrlCore: GTK: TopWindow::IsFullScreen and ::FullScreen methods fixed

git-svn-id: svn://ultimatepp.org/upp/trunk@11022 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-04-22 08:36:06 +00:00
parent f27c9fc7f2
commit 6020f04c32
2 changed files with 18 additions and 19 deletions

View file

@ -186,6 +186,7 @@ void TopWindow::SetMode(int mode)
gtk_window_fullscreen(w);
break;
}
fullscreen = state == FULLSCREEN;
}
void TopWindow::Minimize(bool effect)
@ -195,7 +196,7 @@ void TopWindow::Minimize(bool effect)
TopWindow& TopWindow::FullScreen(bool b)
{
SetMode(FULLSCREEN);
SetMode(b ? FULLSCREEN : OVERLAPPED);
return *this;
}