workspace taskbars: Allow custom command on window click

This commit is contained in:
Pol Rivero
2025-01-24 20:48:45 +01:00
parent b4519c0819
commit 7b854112ed
3 changed files with 17 additions and 3 deletions

View File

@ -705,6 +705,10 @@ auto Workspaces::populateWorkspaceTaskbarConfig(const Json::Value &config) -> vo
toLower(workspaceTaskbar["orientation"].asString()) == "vertical") {
m_taskbarOrientation = Gtk::ORIENTATION_VERTICAL;
}
if (workspaceTaskbar["on-click-window"].isString()) {
m_onClickWindow = workspaceTaskbar["on-click-window"].asString();
}
}
void Workspaces::registerOrphanWindow(WindowCreationPayload create_window_payload) {