summaryrefslogtreecommitdiff
path: root/0001-status-volume-Hide-sliders-initially.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-02 07:11:13 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-02 07:11:13 +0000
commit4671d4f870417e2e0f6b0b4fadfa31570c7752fb (patch)
treee230ed83ee4a856befa7d96addd3d34d78a958b1 /0001-status-volume-Hide-sliders-initially.patch
parentede92676c7c3a698398455318cc45011057260d2 (diff)
automatic import of gnome-shellopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to '0001-status-volume-Hide-sliders-initially.patch')
-rw-r--r--0001-status-volume-Hide-sliders-initially.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/0001-status-volume-Hide-sliders-initially.patch b/0001-status-volume-Hide-sliders-initially.patch
new file mode 100644
index 0000000..1600ab9
--- /dev/null
+++ b/0001-status-volume-Hide-sliders-initially.patch
@@ -0,0 +1,30 @@
+From b212b973175be1cbefa1da2c5ed4f58fae032c73 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
+Date: Wed, 11 May 2022 02:34:21 +0200
+Subject: [PATCH] status/volume: Hide sliders initially
+
+We update the visibility on state or stream changes, but those
+changes may never happen if pipewire-pulse/pulseaudio isn't
+available (for example when running as root).
+
+Hiding the sliders is preferable in that case to showing non-working
+controls.
+---
+ js/ui/status/volume.js | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js
+index 7164e1054..f623ee680 100644
+--- a/js/ui/status/volume.js
++++ b/js/ui/status/volume.js
+@@ -34,6 +34,7 @@ var StreamSlider = class {
+ this._control = control;
+
+ this.item = new PopupMenu.PopupBaseMenuItem({ activate: false });
++ this.item.hide();
+
+ this._inDrag = false;
+ this._notifyVolumeChangeId = 0;
+--
+2.35.1
+