Handle "move" workspace event
This commit is contained in:
@@ -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)
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user