From caf0e59f074df7b7c0c9967eec7849811657f71a Mon Sep 17 00:00:00 2001 From: Rodney Date: Mar 17 2021 11:26:40 +0000 Subject: Merge pull request #3769 from shun-iwasawa/fix_fullscreen_feature Fix full screen feature --- diff --git a/toonz/sources/toonzqt/imageutils.cpp b/toonz/sources/toonzqt/imageutils.cpp index 87c7602..d05dc71 100644 --- a/toonz/sources/toonzqt/imageutils.cpp +++ b/toonz/sources/toonzqt/imageutils.cpp @@ -926,9 +926,8 @@ bool FullScreenWidget::toggleFullScreen( // Define some constants for setting and clearing window flags. const Qt::WindowFlags kwfFullScreenWidgetFlags = - Qt::Window | // <-- Make the widget become a window. - Qt::WindowStaysOnTopHint | // <-- Ensure the window stays on top. - Qt::FramelessWindowHint; // <-- Full screen windows have no border. + Qt::Window | // <-- Make the widget become a window. + Qt::FramelessWindowHint; // <-- Full screen windows have no border. const Qt::WindowFlags kwfFullScreenWidgetExcludedFlagsMask = (Qt::WindowFlags)~Qt::WindowTitleHint; // <-- Full screen windows have no @@ -1030,8 +1029,7 @@ bool FullScreenWidget::toggleFullScreen( // effect. this->show(); #else - this->setWindowFlags(this->windowFlags() | Qt::Window | - Qt::WindowStaysOnTopHint); + this->setWindowFlags(this->windowFlags() | Qt::Window); this->window()->windowHandle()->setScreen(ptrScreenThisWindowIsOn); // http://doc.qt.io/qt-5/windows-issues.html#fullscreen-opengl-based-windows