mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Automatically move output screen to secondary screen (untested).
This commit is contained in:
+16
-4
@@ -65,10 +65,7 @@ void OutputGLWindow::setFullScreen(bool fullscreen)
|
||||
{
|
||||
if (fullscreen)
|
||||
{
|
||||
// Check if user is on multiple screen (always pre
|
||||
int screen = _getPreferredScreen();
|
||||
//Move window to second screen before fullscreening it.
|
||||
setGeometry(QApplication::desktop()->screenGeometry(screen));
|
||||
_updateToPreferredScreen();
|
||||
#ifdef Q_OS_LINUX
|
||||
// The problem related to the full screen on linux seems to be resolved with Qt 5.5 on Debian.
|
||||
// However this still seems to be needed on Ubuntu 15.10.
|
||||
@@ -84,6 +81,21 @@ void OutputGLWindow::setFullScreen(bool fullscreen)
|
||||
}
|
||||
}
|
||||
|
||||
void OutputGLWindow::updateScreenCount(int nScreens)
|
||||
{
|
||||
Q_UNUSED(nScreens);
|
||||
// Untested.
|
||||
_updateToPreferredScreen();
|
||||
}
|
||||
|
||||
void OutputGLWindow::_updateToPreferredScreen()
|
||||
{
|
||||
// Check if user is on multiple screen (always pre
|
||||
int screen = _getPreferredScreen();
|
||||
//Move window to second screen before fullscreening it.
|
||||
setGeometry(QApplication::desktop()->screenGeometry(screen));
|
||||
}
|
||||
|
||||
|
||||
void OutputGLWindow::setDisplayCrosshair(bool crosshair)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user