aboutsummaryrefslogtreecommitdiff
path: root/swaynag
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-04-19 23:12:35 -0400
committerFurkan Sahin <furkan-dev@proton.me>2019-04-19 23:12:35 -0400
commit32b2f057682d0bf063052eb060ea8f0ba4c2c2c5 (patch)
tree7f80948b4139a180738ef8bc93cca18f903a5828 /swaynag
parent4179977dfb8727c4d6a447d2293bf2d39ccfb1da (diff)
ipc: fix criteria for emitting bar_state_update
This fixes the criteria for emitting a `bar_state_update` event to notify swaybar (and any other bars utilizing the event) on whether the bar is visible by modifier. It is not enough to only emit the event when both the bar mode and bar hidden state are `hide` since it is possible to release the modifier while hidden state is `show` and then change hidden state to `hide` without pressing the modifier. This also emits the event whenever visible by modifier is set and should no longer be regardless of the mode and state to ensure that it gets properly cleared. If visible by modifier is not set and the bar is not in `hide`/`hide`, then no events will be sent and visible by modifier will not be set
Diffstat (limited to 'swaynag')
0 files changed, 0 insertions, 0 deletions