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
10QT_BEGIN_NAMESPACE
11
12QEglFSKmsDevice::QEglFSKmsDevice(QKmsScreenConfig *screenConfig, const QString &path)
13 : QKmsDevice(screenConfig, path)
14{
15}
16
17void 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(screen: s, isPrimary);
26}
27
28QT_END_NAMESPACE
29

source code of qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_support/qeglfskmsdevice.cpp