32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
From c7ea14902880d20fa454ac57ea4d0c9c582f829f Mon Sep 17 00:00:00 2001
|
|
From: meizhigang <meizhigang@kylinsec.com.cn>
|
|
Date: Mon, 26 Jun 2023 13:50:15 +0800
|
|
Subject: [PATCH] fix(media-keys):Fix sound up change volume normal to max
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
- 适配音量增大替换基准音量使用最大音量
|
|
|
|
Related #I7C0TD
|
|
---
|
|
plugins/media-keys/msd-media-keys-manager.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/plugins/media-keys/msd-media-keys-manager.c b/plugins/media-keys/msd-media-keys-manager.c
|
|
index 79d9496..62690f3 100644
|
|
--- a/plugins/media-keys/msd-media-keys-manager.c
|
|
+++ b/plugins/media-keys/msd-media-keys-manager.c
|
|
@@ -713,7 +713,7 @@ do_sound_action (MsdMediaKeysManager *manager,
|
|
/* Theoretically the volume limits might be different for different
|
|
* streams, also the minimum might not always start at 0 */
|
|
volume_min = mate_mixer_stream_control_get_min_volume (control);
|
|
- volume_max = mate_mixer_stream_control_get_normal_volume (control);
|
|
+ volume_max = mate_mixer_stream_control_get_max_volume (control);
|
|
|
|
volume_step = g_settings_get_int (manager->priv->settings, "volume-step");
|
|
if (volume_step <= 0 ||
|
|
--
|
|
2.27.0
|
|
|