Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
+
+void
+EventHandler::set_window_popup(const QString &app_id, int x, int y)
+{
+ struct wl_output *output = getWlOutput(qApp->screens().first());
+
+ if (shell_desktop)
+ agl_shell_desktop_set_app_property(shell_desktop,
+ app_id.toStdString().c_str(),
+ AGL_SHELL_DESKTOP_APP_ROLE_POPUP, x, y, output);
+}
Q_INVOKABLE void hideWindow(QString id);
Q_INVOKABLE int start(const QString &app_id);
Q_INVOKABLE bool is_running(const QString &app_id);
Q_INVOKABLE void hideWindow(QString id);
Q_INVOKABLE int start(const QString &app_id);
Q_INVOKABLE bool is_running(const QString &app_id);
+ Q_INVOKABLE void set_window_popup(const QString &app_id, int x, int y);
signals:
void signalOnReplyShowWindow(QVariant val);
signals:
void signalOnReplyShowWindow(QVariant val);
property string postmsg: qsTr("")
property string btndata: qsTr("")
property int pid: -1
property string postmsg: qsTr("")
property string btndata: qsTr("")
property int pid: -1
+ property bool onscreen_role_set: false
+ if (!onscreen_role_set) {
+ eventHandler.set_window_poup(onsId, 0, 218)
+ onscreen_role_set = true
+ }
+
// if the application is not already started, start it
if (pid == -1) {
// if the application is not started, then the first time
// if the application is not already started, start it
if (pid == -1) {
// if the application is not started, then the first time