2 #include <QApplication>
7 #include <X11/extensions/XInput2.h>
12 class QMyApplication : public QApplication
15 QMyApplication(int &argc, char **argv)
16 : QApplication(argc, argv) {}
18 virtual bool x11EventFilter ( XEvent * event );
21 bool QMyApplication::x11EventFilter ( XEvent * event )
23 if (!window) return false;
24 return window->handleX11Event(event);
27 int main(int argc, char *argv[])
29 QMyApplication a(argc, argv);
30 window = new MultiKBD();
31 window->setAttribute(Qt::WA_DeleteOnClose);