fix(bspwm): Update when focusing urgent desktops
When focusing a desktop with the urgent flag, two events are received from `bspc` simultaneously, separated by a newline character. This was not handled correctly and the second event was discarded causing the urgent style to be removed, but the focused style would remain on the previously focused desktop. This fixes the problem by handling any number of events that arrive at the same time (separated by newlines).
This commit is contained in:
parent
98610461de
commit
47bc459742
2 changed files with 13 additions and 3 deletions
include/modules
|
@ -51,6 +51,8 @@ namespace modules {
|
|||
bool input(string&& cmd);
|
||||
|
||||
private:
|
||||
bool handle_status(string& data);
|
||||
|
||||
static constexpr auto DEFAULT_ICON = "ws-icon-default";
|
||||
static constexpr auto DEFAULT_LABEL = "%icon% %name%";
|
||||
static constexpr auto DEFAULT_MONITOR_LABEL = "%name%";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue