Bug Fix : set source rectangle x, y is not 0
[apps/agl-service-windowmanager.git] / src / app.hpp
index 4aaed50..2fe4383 100644 (file)
@@ -33,7 +33,7 @@
 #include "wayland_ivi_wm.hpp"
 #include "hmi-debug.h"
 #include "request.hpp"
-#include "wm-error.h"
+#include "wm_error.hpp"
 
 namespace wl
 {
@@ -70,6 +70,8 @@ extern const char kKeyHeightPixel[];
 extern const char kKeyWidthMm[];
 extern const char kKeyHeightMm[];
 
+class AppList;
+
 struct id_allocator
 {
     unsigned next = 1;
@@ -205,7 +207,7 @@ struct App
     std::vector<int> surface_bg;
 
     explicit App(wl::display *d);
-    ~App() = default;
+    ~App()/*  = default */;
 
     App(App const &) = delete;
     App &operator=(App const &) = delete;
@@ -233,6 +235,7 @@ struct App
     // Events from the compositor we are interested in
     void surface_created(uint32_t surface_id);
     void surface_removed(uint32_t surface_id);
+    void surface_properties(uint32_t surface_id, uint32_t pid);
 
     // Do not use this function
     //static int processTimerHandler(sd_event_source *s, uint64_t usec, void *userdata);
@@ -286,6 +289,10 @@ struct App
     WMError lm_layout_change(const struct WMAction &action);
     WMError lm_release(const struct WMAction &action);
     void lm_enddraw(const char *drawing_name);
+
+  private:
+    //std::unique_ptr<wm::AppList> app_list;
+    //AppList *app_list;
 };
 
 } // namespace wm