Clean: Sort functions
[apps/agl-service-windowmanager.git] / src / window_manager.hpp
index 99a30e0..06967c0 100644 (file)
@@ -201,9 +201,7 @@ class WindowManager
     WindowManager &operator=(WindowManager &&) = delete;
 
     int init();
-
     int dispatch_pending_events();
-
     void set_pending_events();
 
     result<int> api_request_surface(char const *appid, char const *drawing_name);
@@ -225,21 +223,17 @@ class WindowManager
     void exceptionProcessForTransition();
     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);
     void timerHandler();
 
   private:
+    bool pop_pending_events();
     optional<int> lookup_id(char const *name);
     optional<std::string> lookup_name(int id);
-
-    bool pop_pending_events();
-
     int init_layers();
-
     void surface_set_layout(int surface_id, const std::string& area = "");
     void layout_commit();
 
-    // TMC WM Events to clients
+    // WM Events to clients
     void emit_activated(char const *label);
     void emit_deactivated(char const *label);
     void emit_syncdraw(char const *label, char const *area, int x, int y, int w, int h);
@@ -249,6 +243,8 @@ class WindowManager
     void emit_invisible(char const *label);
     void emit_visible(char const *label);
 
+    void activate(int id);
+    void deactivate(int id);
     WMError setRequest(const std::string &appid, const std::string &role, const std::string &area,
                              Task task, unsigned *req_num);
     WMError doTransition(unsigned sequence_number);
@@ -268,9 +264,6 @@ class WindowManager
 
     const char *check_surface_exist(const char *drawing_name);
 
-    void activate(int id);
-    void deactivate(int id);
-
     bool can_split(struct LayoutState const &state, int new_id);
 
   private: