From ce10176ea73bf6a9db11a503102d4fa9363fc587 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sun, 18 Dec 2011 22:31:19 +0100 Subject: Initial support for displaying source outputs --- src/interface.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/interface.c') diff --git a/src/interface.c b/src/interface.c index c6ec5a1..f6fdc8a 100644 --- a/src/interface.c +++ b/src/interface.c @@ -105,6 +105,9 @@ print_volume(struct interface *ifc, struct vol_ctl *ctl) { gint vol; + if (!ctl->mute_set || !ctl->volume_set) + return; + allocate_volume_bar(ifc); vol = (gint) (ifc->volume_bar_len * ctl->vol / PA_VOLUME_NORM); wprintw(ifc->menu_win, " [%c][%-*.*s]", -- cgit