Handle "move" workspace event

This commit is contained in:
2021-12-04 13:40:29 +01:00
parent c697466686
commit a66f24888f
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;