Handle "move" workspace event

This commit is contained in:
2025-01-02 16:32:15 +01:00
parent f8d5903f42
commit a7ae06060a
2 changed files with 3 additions and 0 deletions

View File

@@ -95,6 +95,7 @@ enum class WorkspaceEventType : char {
RENAME = 'r', ///< Renamed
RELOAD = 'l', ///< Reloaded
RESTORED = 's', ///< Restored
MOVE = 'm', ///< Moved (to output)
};
/**

View File

@@ -355,6 +355,8 @@ connection::connection(const std::string& socket_path) : m_main_socket(i3_conne
ev.type = WorkspaceEventType::RELOAD;
} else if (change == "restored") {
ev.type = WorkspaceEventType::RESTORED;
} else if(change == "move") {
ev.type = WorkspaceEventType::MOVE;
} else {
I3IPC_WARN("Unknown workspace event type " << change)
break;