Changed helper function for workspace->num assignment to a static method of Workspaces class

and adapted comments/method name to be consistent with the rest
This commit is contained in:
Michael Rodler
2020-07-27 10:56:49 +02:00
parent 15fe73a252
commit 006850ea5e
2 changed files with 15 additions and 11 deletions

View File

@ -22,6 +22,8 @@ class Workspaces : public AModule, public sigc::trackable {
private:
static inline const std::string workspace_switch_cmd_ = "workspace --no-auto-back-and-forth \"{}\"";
static int convertWorkspaceNameToNum(std::string name);
void onCmd(const struct Ipc::ipc_response&);
void onEvent(const struct Ipc::ipc_response&);
bool filterButtons();