Added support for undocumented WorkspaceEventTypes

"reload", "restore" and "reload" are possible types of the workspace
event. They weren't documented (I will contact the responsible person).
I'm not sure if the "reload" signal can be received, but better be safe
than sorry.
This commit is contained in:
Tobias Hänel
2017-01-22 20:42:14 +01:00
parent a8d103c159
commit 894b235e04
2 changed files with 10 additions and 1 deletions

View File

@@ -287,7 +287,13 @@ connection::connection(const std::string& socket_path) : m_main_socket(i3_conne
ev.type = WorkspaceEventType::EMPTY;
} else if (change == "urgent") {
ev.type = WorkspaceEventType::URGENT;
} else {
} else if (change == "rename") {
ev.type = WorkspaceEventType::RENAME;
} else if (change == "reload") {
ev.type = WorkspaceEventType::RELOAD;
} else if (change == "restored") {
ev.type = WorkspaceEventType::RESTORED;
} else {
I3IPC_WARN("Unknown workspace event type " << change)
break;
}