| 1 |
// Copyright (C) 2016 The Qt Company Ltd. |
| 2 |
// Copyright (C) 2016 Pelagicore AG |
| 3 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 4 |
|
| 5 |
#include "qeglfskmsdevice_p.h" |
| 6 |
#include "qeglfskmsscreen_p.h" |
| 7 |
#include "private/qeglfsintegration_p.h" |
| 8 |
#include <QtGui/private/qguiapplication_p.h> |
| 9 |
|
| 10 |
QT_BEGIN_NAMESPACE |
| 11 |
|
| 12 |
QEglFSKmsDevice::QEglFSKmsDevice(QKmsScreenConfig *screenConfig, const QString &path) |
| 13 |
: QKmsDevice(screenConfig, path) |
| 14 |
{ |
| 15 |
} |
| 16 |
|
| 17 |
void QEglFSKmsDevice::registerScreen(QPlatformScreen *screen, |
| 18 |
bool isPrimary, |
| 19 |
const QPoint &virtualPos, |
| 20 |
const QList<QPlatformScreen *> &virtualSiblings) |
| 21 |
{ |
| 22 |
QEglFSKmsScreen *s = static_cast<QEglFSKmsScreen *>(screen); |
| 23 |
s->setVirtualPosition(virtualPos); |
| 24 |
s->setVirtualSiblings(virtualSiblings); |
| 25 |
QWindowSystemInterface::handleScreenAdded(s, isPrimary); |
| 26 |
} |
| 27 |
|
| 28 |
QT_END_NAMESPACE |