fix(xkeyboard): Use current group number

Ref 
This commit is contained in:
Michael Carlberg 2016-12-08 18:35:06 +01:00
parent 5571095537
commit 891ff6d80a
4 changed files with 55 additions and 15 deletions
include/modules

View file

@ -17,7 +17,7 @@ namespace modules {
* Keyboard module using the X keyboard extension
*/
class xkeyboard_module : public static_module<xkeyboard_module>,
public xpp::event::sink<evt::xkb_new_keyboard_notify, evt::xkb_indicator_state_notify> {
public xpp::event::sink<evt::xkb_new_keyboard_notify, evt::xkb_state_notify, evt::xkb_indicator_state_notify> {
public:
xkeyboard_module(const bar_settings& bar, const logger& logger, const config& config, string name);
@ -31,6 +31,7 @@ namespace modules {
bool blacklisted(const string& indicator_name);
void handle(const evt::xkb_new_keyboard_notify& evt);
void handle(const evt::xkb_state_notify& evt);
void handle(const evt::xkb_indicator_state_notify& evt);
private: