e_client_volume: Don't set client volume to max after a mute.

Don't set client volume to max after a mute and unmute. Just check if the
volume is within the available limits.
devs/bu5hm4n/mixer-fix
Michael Bouchaud 6 years ago
parent cb6ea9f747
commit 2e043e825d
  1. 11
      src/bin/e_client_volume.c

@ -264,8 +264,15 @@ _e_client_volume_update(E_Client *ec)
{
ec->volume_min = volume_min;
ec->volume_max = volume_max;
if (count > 0) ec->volume = volume / count;
else ec->volume = volume_max;
if (count == 0)
{
if (ec->volume < volume_min)
ec->volume = volume_min;
if (ec->volume > volume_max)
ec->volume = volume_max;
}
else
ec->volume = volume / count;
ec->mute = mute;
ec->volume_control_enabled = EINA_TRUE;
}

Loading…
Cancel
Save