mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 03:19:35 +02:00
Fix for OS X Fullscreen (closes #2414)
This commit is contained in:
parent
2bc605e193
commit
7f7cd6f654
1 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
//
|
||||
|
||||
#include "MainWindow.h"
|
||||
#include "Menu.h"
|
||||
|
||||
#include <QEvent>
|
||||
#include <QMoveEvent>
|
||||
|
@ -56,6 +57,10 @@ void MainWindow::changeEvent(QEvent* event) {
|
|||
} else {
|
||||
emit windowShown(true);
|
||||
}
|
||||
|
||||
if (isFullScreen() != Menu::getInstance()->isOptionChecked(MenuOption::Fullscreen)) {
|
||||
Menu::getInstance()->setIsOptionChecked(MenuOption::Fullscreen, isFullScreen());
|
||||
}
|
||||
} else if (event->type() == QEvent::ActivationChange) {
|
||||
if (isActiveWindow()) {
|
||||
emit windowShown(true);
|
||||
|
|
Loading…
Reference in a new issue