[bugfix] idle_inhibitor handles click events correctly

- Declare event handler in ALabel virtual so the idle_inhibitor can
  overriding them
- Handle the right click event in idle_inhibitor and call ALabel handler if needed
This commit is contained in:
Jonas
2019-03-03 22:02:34 +01:00
parent 7e4fed8218
commit 80ef63791d
3 changed files with 13 additions and 9 deletions

View File

@ -13,7 +13,7 @@ class IdleInhibitor: public ALabel {
~IdleInhibitor();
auto update() -> void;
private:
bool onClick(GdkEventButton* const& ev);
bool handleToggle(GdkEventButton* const& e);
const Bar& bar_;
std::string status_;