3 #include <QApplication>
8 class MultypoApplication : public QApplication
11 MultypoApplication(int &argc, char **argv)
12 : QApplication(argc, argv) {}
14 virtual bool x11EventFilter ( XEvent * event );
17 bool MultypoApplication::x11EventFilter ( XEvent * event )
19 if (!window) return false;
20 return window->handleX11Event(event);
23 int main(int argc, char *argv[])
25 MultypoApplication a(argc, argv);
26 window = new MultypoWindow();
27 window->setAttribute(Qt::WA_DeleteOnClose);