~andreafeletto/levee

1ecf272596fd8f50d28073181b960f952abb4419 — Andrea Feletto 27 days ago a40cd1f
pulse: read fd after poll
1 files changed, 3 insertions(+), 0 deletions(-)

M src/modules/Pulse.zig
M src/modules/Pulse.zig => src/modules/Pulse.zig +3 -0
@@ 86,6 86,9 @@ fn print(self_opaque: *anyopaque, writer: Module.StringWriter) !void {
fn callbackIn(self_opaque: *anyopaque) error{Terminate}!void {
    const self = utils.cast(Pulse)(self_opaque);

    var data = mem.zeroes([8]u8);
    _ = os.read(self.fd, &data) catch return;

    for (self.state.wayland.monitors.items) |monitor| {
        if (monitor.bar) |bar| {
            if (bar.configured) {