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 RENAME = 'r', ///< Renamed
RELOAD = 'l', ///< Reloaded RELOAD = 'l', ///< Reloaded
RESTORED = 's', ///< Restored 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; ev.type = WorkspaceEventType::RELOAD;
} else if (change == "restored") { } else if (change == "restored") {
ev.type = WorkspaceEventType::RESTORED; ev.type = WorkspaceEventType::RESTORED;
} else if(change == "move") {
ev.type = WorkspaceEventType::MOVE;
} else { } else {
I3IPC_WARN("Unknown workspace event type " << change) I3IPC_WARN("Unknown workspace event type " << change)
break; break;