mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Allow scrolling on the entire bar surface
This commit is contained in:
@ -55,6 +55,7 @@ class Bar {
|
||||
void setMarginsAndZone(uint32_t height, uint32_t width);
|
||||
auto setupWidgets() -> void;
|
||||
void getModules(const Factory &, const std::string &);
|
||||
bool handleScroll(GdkEventScroll*);
|
||||
void setupAltFormatKeyForModule(const std::string &module_name);
|
||||
void setupAltFormatKeyForModuleList(const char *module_list_name);
|
||||
|
||||
|
@ -19,6 +19,8 @@ class Workspaces : public IModule, public sigc::trackable {
|
||||
auto update() -> void;
|
||||
operator Gtk::Widget&();
|
||||
|
||||
bool handleScroll(GdkEventScroll*);
|
||||
|
||||
private:
|
||||
void onCmd(const struct Ipc::ipc_response&);
|
||||
void onEvent(const struct Ipc::ipc_response&);
|
||||
@ -27,7 +29,6 @@ class Workspaces : public IModule, public sigc::trackable {
|
||||
Gtk::Button& addButton(const Json::Value&);
|
||||
void onButtonReady(const Json::Value&, Gtk::Button&);
|
||||
std::string getIcon(const std::string&, const Json::Value&);
|
||||
bool handleScroll(GdkEventScroll*);
|
||||
const std::string getCycleWorkspace(std::vector<Json::Value>::iterator, bool prev) const;
|
||||
uint16_t getWorkspaceIndex(const std::string& name) const;
|
||||
std::string trimWorkspaceName(std::string);
|
||||
|
Reference in New Issue
Block a user