+ QCommandLineParser parser;
+ parser.setApplicationDescription("AGL WindowManager - see wwww... for more details");
+ parser.addHelpOption();
+ parser.addVersionOption();
+ QCommandLineOption displayOption(QStringList() << "d" << "display-id",
+ QCoreApplication::translate("main", "The display with this <id> to manage. Default=0"),
+ QCoreApplication::translate("main", "id"));
+ parser.addOption(displayOption);
+ parser.process(a);
+
+ int displayId = 0;
+ if (parser.isSet(displayOption))
+ {
+ displayId = parser.value(displayOption).toInt();
+ }
+ qDebug() << "Using display" << displayId;
+
+ qDBusRegisterMetaType<SimplePoint>();
+ qDBusRegisterMetaType<QList<SimplePoint> >();
+ qDBusRegisterMetaType<LayoutArea>();
+ qDBusRegisterMetaType<QList<LayoutArea> >();
+ qDBusRegisterMetaType<Layout>();
+ qDBusRegisterMetaType<QList<Layout> >();
+
+ WindowManager *windowManager = new WindowManager(displayId);
+ windowManager->start();
+
+#ifdef __arm__
+ qDebug("Running on ARM architecture");
+#endif
+#ifdef __i386__
+ qDebug("Running on x86 architecture");
+#endif