Making fullsceenable work on Linux

This commit is contained in:
brenca 2016-02-27 22:37:42 +01:00
parent bb42c85df8
commit a06392459e
2 changed files with 3 additions and 3 deletions

View file

@ -133,7 +133,7 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
if (options.Get(options::kAlwaysOnTop, &top) && top) {
SetAlwaysOnTop(true);
}
#if defined(OS_MACOSX) || defined(OS_WIN)
// Disable fullscreen button when 'fullscreenable' is false or 'fullscreen'
// is specified to false.
bool fullscreenable = true;
@ -144,7 +144,7 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
SetFullScreenable(fullscreenable);
if (fullscreen)
SetFullScreen(true);
#endif
bool skip;
if (options.Get(options::kSkipTaskbar, &skip) && skip) {
SetSkipTaskbar(skip);

View file

@ -379,7 +379,7 @@ void NativeWindowViews::SetFullScreen(bool fullscreen) {
if (IsFullScreenable())
window_->SetFullscreen(fullscreen);
#else
if (!fullscreen || IsFullScreenable()) {
if (!fullscreen || (fullscreen && IsFullScreenable())) {
if (IsVisible())
window_->SetFullscreen(fullscreen);
else