diff options
Diffstat (limited to 'app/main.cpp')
-rw-r--r-- | app/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/main.cpp b/app/main.cpp index 2a57d08..ab74471 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -28,7 +28,7 @@ #include <QQuickWindow> -#ifdef HAVE_LIBHOMESCREEN +#ifdef HAVE_QLIBHOMESCREEN #include <qlibhomescreen.h> #endif #ifdef HAVE_QLIBWINDOWMANAGER @@ -94,21 +94,21 @@ int main(int argc, char *argv[]) }); #endif -#ifdef HAVE_LIBHOMESCREEN +#ifdef HAVE_QLIBHOMESCREEN // HomeScreen QLibHomeScreen* qhs = new QLibHomeScreen(); std::string token = secret.toStdString(); qhs->init(port, token.c_str()); // Set the event handler for Event_TapShortcut which will activate the surface for windowmanager qhs->set_event_handler(QLibHomeScreen::Event_ShowWindow, [qwm, myname](json_object *object){ - qwm->activateWindow(myname); + qwm->activateWindow(myname, "split.main"); }); #endif engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); QObject *root = engine.rootObjects().first(); QQuickWindow *window = qobject_cast<QQuickWindow *>(root); -#ifdef HAVE_LIBHOMESCREEN +#ifdef HAVE_QLIBHOMESCREEN qhs->setQuickWindow(window); #endif #ifdef HAVE_QLIBWINDOWMANAGER |