use qt native event filter instead of xlib directly
[projets/fookb-qt.git] / fookb.cpp
1 #include <QApplication>
2 #include <QQmlApplicationEngine>
3 #include <QDebug>
4
5 #include "xcbEventFilter.h"
6
7 int main(int argc, char *argv[])
8 {
9     QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
10     QApplication app(argc, argv);
11     QQmlApplicationEngine engine;
12     engine.load(QUrl(QStringLiteral("qrc:/fookb.qml")));
13
14     // Install event filter to handle mapping change
15     XcbEventFilter eventFilter;
16     app.installNativeEventFilter(&eventFilter);
17
18     return app.exec();
19 }