e900dc3b5e
Previously qtvirtualkeyboard was integrated weirdly so that it was
acting as the focus object and proxy for input methods, however now that
we support proper input methods, this code is totally unused in the QPA
and actually prevents the QT_IM_MODULE from working now that
qtvirtualkeyboard is dropped.
See: f26f2fe181
for the reference of the
code deleted.
58 lines
1.5 KiB
C++
58 lines
1.5 KiB
C++
/*
|
|
KWin - the KDE window manager
|
|
This file is part of the KDE project.
|
|
|
|
SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org>
|
|
SPDX-FileCopyrightText: 2019 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
#ifndef KWIN_QPA_INTEGRATION_H
|
|
#define KWIN_QPA_INTEGRATION_H
|
|
|
|
#include <epoxy/egl.h>
|
|
#include "fixqopengl.h"
|
|
|
|
#include <fixx11h.h>
|
|
#include <qpa/qplatformintegration.h>
|
|
#include <QObject>
|
|
|
|
namespace KWin
|
|
{
|
|
namespace QPA
|
|
{
|
|
|
|
class Screen;
|
|
|
|
class Integration : public QObject, public QPlatformIntegration
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit Integration();
|
|
~Integration() override;
|
|
|
|
bool hasCapability(Capability cap) const override;
|
|
QPlatformWindow *createPlatformWindow(QWindow *window) const override;
|
|
QPlatformOffscreenSurface *createPlatformOffscreenSurface(QOffscreenSurface *surface) const override;
|
|
QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const override;
|
|
QAbstractEventDispatcher *createEventDispatcher() const override;
|
|
QPlatformFontDatabase *fontDatabase() const override;
|
|
QStringList themeNames() const override;
|
|
QPlatformTheme *createPlatformTheme(const QString &name) const override;
|
|
QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const override;
|
|
|
|
void initialize() override;
|
|
|
|
private:
|
|
void initScreens();
|
|
|
|
QScopedPointer<QPlatformFontDatabase> m_fontDb;
|
|
QPlatformNativeInterface *m_nativeInterface;
|
|
Screen *m_dummyScreen = nullptr;
|
|
QVector<Screen*> m_screens;
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|