App: emit visibility events
[staging/windowmanager.git] / src / app.hpp
index 79498c2..d1fc912 100644 (file)
@@ -122,8 +122,6 @@ struct App {
       return this->id_alloc.lookup(id);
    }
 
-   std::deque<unsigned> last_active;
-
    explicit App(wl::display *d);
    ~App();
 
@@ -133,11 +131,11 @@ struct App {
    App &operator=(App &&) = delete;
 
    int init();
-   int init_layout();
+   int init_layers();
 
    int dispatch_events();
 
-   void surface_set_layout(uint32_t surface_id);
+   void surface_init_layout(uint32_t surface_id);
 
    // Allocate a surface ID for this role
    result<int> request_surface(char const *drawing_name);
@@ -156,6 +154,11 @@ struct App {
    void emit_syncdraw(char const *label);
    void emit_flushdraw(char const *label);
    void emit_visible(char const *label, bool is_visible);
+   void emit_invisible(char const *label);
+   void emit_visible(char const *label);
+
+   void activate(unsigned id);
+   void deactivate(unsigned id);
 };
 
 }  // namespace wm