some preliminary parts to try and fix window activation on wayland
This commit is contained in:
parent
daa7e9e192
commit
3d42418c5f
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
||||||
#include <QOpenGLContext>
|
#include <QOpenGLContext>
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
#include <QQuickStyle>
|
#include <QQuickStyle>
|
||||||
|
#include <QSurfaceFormat>
|
||||||
|
|
||||||
#include <QtGui/QOpenGLFramebufferObject>
|
#include <QtGui/QOpenGLFramebufferObject>
|
||||||
|
|
||||||
|
@ -89,6 +90,7 @@ static void connectToDatabase() {
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
qDebug() << QSurfaceFormat::defaultFormat();
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("system-config-display")));
|
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("system-config-display")));
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
@ -172,6 +174,7 @@ int main(int argc, char *argv[])
|
||||||
KWindowSystem::activateWindow(window);
|
KWindowSystem::activateWindow(window);
|
||||||
qDebug() << "00000000000000000000000000000000";
|
qDebug() << "00000000000000000000000000000000";
|
||||||
qDebug() << KWindowSystem::isPlatformWayland();
|
qDebug() << KWindowSystem::isPlatformWayland();
|
||||||
|
qDebug() << KWindowSystem::windows();
|
||||||
qDebug() << "00000000000000000000000000000000";
|
qDebug() << "00000000000000000000000000000000";
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue