mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
26a27cf3f8
commit
eaccbf3da9
|
@ -30,6 +30,7 @@
|
||||||
#include "src/core/coreav.h"
|
#include "src/core/coreav.h"
|
||||||
#include "src/core/recursivesignalblocker.h"
|
#include "src/core/recursivesignalblocker.h"
|
||||||
|
|
||||||
|
#include <QScreen>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QShowEvent>
|
#include <QShowEvent>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
@ -171,6 +172,12 @@ void AVForm::on_videoModescomboBox_currentIndexChanged(int index)
|
||||||
mode.width = mode.width / 2 * 2;
|
mode.width = mode.width / 2 * 2;
|
||||||
mode.height = mode.height / 2 * 2;
|
mode.height = mode.height / 2 * 2;
|
||||||
|
|
||||||
|
// Need, if virtual screen origin is top left angle of primary screen
|
||||||
|
QRect screen = QApplication::primaryScreen()->virtualGeometry();
|
||||||
|
qDebug() << screen;
|
||||||
|
mode.x += screen.x();
|
||||||
|
mode.y += screen.y();
|
||||||
|
|
||||||
Settings::getInstance().setScreenRegion(mode.toRect());
|
Settings::getInstance().setScreenRegion(mode.toRect());
|
||||||
Settings::getInstance().setScreenGrabbed(true);
|
Settings::getInstance().setScreenGrabbed(true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user