mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-04-18 05:29:09 +02:00
fix fullscreen on gnome
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user