fix fullscreen on gnome

This commit is contained in:
Alexandre Quessy
2014-10-13 23:21:44 -04:00
parent 4246c5a3b4
commit 39ee4903c7

View File

@@ -78,7 +78,7 @@ void OutputGLWindow::setFullScreen(bool fullscreen)
#ifdef Q_OS_UNIX
// Special case for Unity.
if (session == "ubuntu") {
if (session == "ubuntu" || session == "gnome") {
setWindowState( windowState() | Qt::WindowFullScreen | Qt::WindowMaximized);
setWindowFlags(Qt::Dialog);
show();
@@ -96,7 +96,7 @@ void OutputGLWindow::setFullScreen(bool fullscreen)
#ifdef Q_OS_UNIX
// Special case for Unity.
if (session == "ubuntu") {
if (session == "ubuntu" || session == "gnome") {
setWindowState( windowState() & ~Qt::WindowFullScreen);
} else {
showNormal();