feat: Window click handlers

New parameters for defining fallback click handlers
that will be triggered for the whole window unless
a module action is matched.

Parameters added to all [bar/foo] sections:

- `click-left = ...`
- `click-middle= ...`
- `click-right= ...`
- `scroll-up= ...`
- `scroll-down= ...`

Ref 
This commit is contained in:
Michael Carlberg 2016-12-05 13:17:09 +01:00
parent 3854515521
commit ec39859093
5 changed files with 81 additions and 29 deletions
include/modules

View file

@ -53,10 +53,10 @@ namespace modules {
static constexpr const char* TAG_LABEL_STATE{"<label-state>"};
static constexpr const char* TAG_LABEL_MODE{"<label-mode>"};
static constexpr const char* EVENT_PREFIX{"i3"};
static constexpr const char* EVENT_CLICK{"i3-wsfocus-"};
static constexpr const char* EVENT_SCROLL_UP{"i3-wsnext"};
static constexpr const char* EVENT_SCROLL_DOWN{"i3-wsprev"};
static constexpr const char* EVENT_PREFIX{"i3wm"};
static constexpr const char* EVENT_CLICK{"i3wm-wsfocus-"};
static constexpr const char* EVENT_SCROLL_UP{"i3wm-wsnext"};
static constexpr const char* EVENT_SCROLL_DOWN{"i3wm-wsprev"};
map<state, label_t> m_statelabels;
vector<unique_ptr<workspace>> m_workspaces;