Making fullsceenable work on Linux
This commit is contained in:
parent
bb42c85df8
commit
a06392459e
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue