aboutsummaryrefslogtreecommitdiffstats
path: root/src/window_manager.hpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-24 17:11:24 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-24 17:11:24 +0900
commit00ee9b48ed5d69a7b4c752d648914e1afd4f41df (patch)
treee6658ebb2518f3ede23ea58acc43aa9bb15eb2cf /src/window_manager.hpp
parent7443e6664924dfa2cc553d16d63ae58b7de53e73 (diff)
Clean: Sort functions
Change-Id: I8d6b88fe75125877c8358f2062aa748885c138cf Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/window_manager.hpp')
-rw-r--r--src/window_manager.hpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/window_manager.hpp b/src/window_manager.hpp
index 99a30e0..06967c0 100644
--- a/src/window_manager.hpp
+++ b/src/window_manager.hpp
@@ -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: