-#include "multikbd.h"
-#include <QApplication>
+#include "multypo.h"
+#include <QApplication>
#include <QDebug>
-#include <X11/Xlib.h>
-#include <X11/extensions/XInput2.h>
-#include <X11/Xutil.h>
-
-MultiKBD *window;
+MultypoWindow *window;
-class QMyApplication : public QApplication
+class MultypoApplication : public QApplication
{
public:
- QMyApplication(int argc, char **argv)
+ MultypoApplication(int &argc, char **argv)
: QApplication(argc, argv) {}
virtual bool x11EventFilter ( XEvent * event );
};
-bool QMyApplication::x11EventFilter ( XEvent * event )
+bool MultypoApplication::x11EventFilter ( XEvent * event )
{
if (!window) return false;
return window->handleX11Event(event);
int main(int argc, char *argv[])
{
- QMyApplication a(argc, argv);
- window = new MultiKBD();
+ MultypoApplication a(argc, argv);
+ window = new MultypoWindow();
window->setAttribute(Qt::WA_DeleteOnClose);
window->show();