app_data.toStdString().c_str(), output);
}
+void
+Shell::activate_app_by_screen(const QString &screen_name, const QString &app_id,
+ const QString &app_data)
+{
+ QScreen *qscreen_to_put = nullptr;
+ for (auto &ss: qApp->screens()) {
+ if (ss->name() == screen_name) {
+ qscreen_to_put = ss;
+ break;
+ }
+ }
+
+ /* use the primary one */
+ if (!qscreen_to_put) {
+ qscreen_to_put = qApp->screens().first();
+ }
+
+ struct wl_output *output = getWlOutput(qscreen_to_put);
+ qDebug() << "will activate app: " << app_id << " on output " <<
+ qscreen_to_put->name();
+ agl_shell_desktop_activate_app(this->shell.get(),
+ app_id.toStdString().c_str(),
+ app_data.toStdString().c_str(), output);
+}
+
void
Shell::deactivate_app(const QString &app_id)
{
void
Shell::set_window_props(QWindow *win, const QString &app_id,
- uint32_t props, int x, int y)
+ uint32_t props, int x, int y, int bx, int by,
+ int bwidth, int bheight)
{
QScreen *screen = nullptr;
struct wl_output *output;
output = getWlOutput(screen);
agl_shell_desktop_set_app_property(this->shell.get(),
app_id.toStdString().c_str(),
- props, x, y, output);
+ props, x, y, bx, by,
+ bwidth, bheight, output);
}