Remove deactivate_main_surface API
[apps/agl-service-windowmanager.git] / src / app.hpp
index 74361a2..a6608e0 100644 (file)
@@ -234,6 +234,7 @@ struct App
     void surface_removed(uint32_t surface_id);
 
     void removeClient(const std::string &appid);
+    void exeptionProcessForTransition();
     bool subscribeEventForApp(const std::string &appid, afb_req req, const std::string &evname);
     // Do not use this function
     //static int processTimerHandler(sd_event_source *s, uint64_t usec, void *userdata);
@@ -250,7 +251,7 @@ struct App
 
     int init_layers();
 
-    void surface_set_layout(int surface_id, optional<int> sub_surface_id = nullopt);
+    void surface_set_layout(int surface_id, const std::string& area = "");
     void layout_commit();
 
     // TMC WM Events to clients
@@ -274,8 +275,10 @@ struct App
     WMError layoutChange(const WMAction &action);
     WMError visibilityChange(const WMAction &action);
     WMError setSurfaceSize(unsigned surface, const std::string& area);
+    WMError changeCurrentState(unsigned req_num);
 
-    void setTimer();
+    void
+    setTimer();
     void stopTimer();
     void processNextRequest();
 
@@ -283,7 +286,6 @@ struct App
 
     void activate(int id);
     void deactivate(int id);
-    void deactivate_main_surface();
 
     bool can_split(struct LayoutState const &state, int new_id);
     void try_layout(struct LayoutState &state,