From 3f7900bf4e382cc57133e307efeaa3856c90c505 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 21 Oct 2017 23:25:42 +0300 Subject: mainwindow: disable fullscreen support by default Require the FULLSCREEN_SUPPORT macro to enable fullscreen support. The toggle was added 4 years ago in Subsurface, but with the current version of Qt 5.9.x, it's very buggy on Windows and Ubuntu. While it's possible to make this work on Windows, it seems to behave broken in different ways on different versiosn of Ubuntu. Fixes #705 Signed-off-by: Lubomir I. Ivanov --- desktop-widgets/mainwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 1445ea93b..accf0b267 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -313,6 +313,14 @@ MainWindow::MainWindow() : QMainWindow(), ui.profTankbar->setChecked(sWrapper->techDetails->tankBar()); ui.profTissues->setChecked(sWrapper->techDetails->percentageGraph()); ui.profScaled->setChecked(sWrapper->techDetails->zoomedPlot()); + +// full screen support is buggy on Windows and Ubuntu. +// require the FULLSCREEN_SUPPORT macro to enable it! +#ifndef FULLSCREEN_SUPPORT + ui.actionFullScreen->setEnabled(false); + ui.actionFullScreen->setVisible(false); + setWindowState(windowState() & ~Qt::WindowFullScreen); +#endif } MainWindow::~MainWindow() -- cgit v1.2.3-70-g09d2