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