Workspaces scroll event (#19)

This commit is contained in:
Alex
2018-08-14 11:26:06 +02:00
committed by GitHub
parent 18c7ad0026
commit cee031d2fa
3 changed files with 82 additions and 6 deletions

View File

@ -17,11 +17,15 @@ namespace waybar::modules {
private:
void _addWorkspace(Json::Value node);
Json::Value _getWorkspaces(const std::string data);
bool _handleScroll(GdkEventScroll *e);
int _getPrevWorkspace();
int _getNextWorkspace();
Bar &_bar;
waybar::util::SleeperThread _thread;
Gtk::Box _box;
util::JsonParser _parser;
std::mutex _mutex;
bool _scrolling;
std::unordered_map<int, Gtk::Button> _buttons;
Json::Value _workspaces;
int _ipcfd;