homescreen: Add support for defining an activation area
[apps/homescreen.git] / homescreen / src / shell.h
index a6e3f7e..51990d8 100644 (file)
 
 class Shell : public QObject
 {
-    Q_OBJECT
+       Q_OBJECT
 
 public:
-    std::shared_ptr<struct agl_shell> shell;
-
-    Shell(std::shared_ptr<struct agl_shell> shell, QObject *parent = nullptr) :
-        QObject(parent), shell(shell) 
-    {}
-public slots:
-    void activate_app(QWindow *win, const QString &app_id);
+       std::shared_ptr<struct agl_shell> shell;
+
+       Shell(std::shared_ptr<struct agl_shell> shell, QObject *parent = nullptr) :
+               QObject(parent), shell(shell)
+       {}
+       public slots:
+               void activate_app(QWindow *win, const QString &app_id);
+       void set_activate_region(struct wl_output *output, int32_t x, int32_t y,
+                       int32_t width, int32_t height);
+private:
+       struct wl_region *m_region = nullptr;
 };
 
 #endif // SHELLHANDLER_H