App: single-method layout setup
[staging/windowmanager.git] / src / app.hpp
index 6e18855..c12654d 100644 (file)
@@ -139,8 +139,6 @@ struct App {
    int dispatch_events();
    int dispatch_pending_events();
 
-   void surface_set_layout_full(uint32_t surface_id);
-   void surface_set_layout_split(uint32_t surface_id, uint32_t sub_surface_id);
    void set_pending_events();
 
    result<int> api_request_surface(char const *drawing_name);
@@ -164,6 +162,8 @@ private:
 
    int init_layers();
 
+   void surface_set_layout(int surface_id, optional<int> sub_surface_id = nullopt);
+
    // TMC WM Events to clients
    void emit_activated(char const *label);
    void emit_deactivated(char const *label);