Rename the "disable-workspace-scroll" option to "disable-bar-scroll"

pull/326/head
RX14 2019-05-17 17:42:11 +01:00
parent 9234be8544
commit 0d59f7b7d1
No known key found for this signature in database
GPG Key ID: CEF2BBFE18BD0E67
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ Workspaces::Workspaces(const std::string &id, const Bar &bar, const Json::Value
ipc_.signal_event.connect(sigc::mem_fun(*this, &Workspaces::onEvent));
ipc_.signal_cmd.connect(sigc::mem_fun(*this, &Workspaces::onCmd));
ipc_.sendCmd(IPC_GET_WORKSPACES);
if (!config["disable-workspace-scroll"].asBool()) {
if (!config["disable-bar-scroll"].asBool()) {
auto &window = const_cast<Bar&>(bar_).window;
window.add_events(Gdk::SCROLL_MASK | Gdk::SMOOTH_SCROLL_MASK);
window.signal_scroll_event().connect(sigc::mem_fun(*this, &Workspaces::handleScroll));