App/layers: deactivate surfaces on layers above.
[staging/windowmanager.git] / src / app.hpp
index 297b6af..2e5478b 100644 (file)
@@ -127,8 +127,6 @@ struct App {
       return this->id_alloc.lookup(id);
    }
 
-   struct LayoutState state;
-
    // Set by AFB API when wayland events need to be dispatched
    std::atomic<bool> pending_events;
    void set_pending_events() {
@@ -180,7 +178,7 @@ struct App {
    void activate(int id);
    void deactivate(int id);
 
-   bool can_split(int new_id);
+   bool can_split(struct LayoutState const &state, int new_id);
 };
 
 }  // namespace wm