Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-osd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-shell-osd
Commits
cb5986a1
Verified
Commit
cb5986a1
authored
Mar 28, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
volume: suppress OSD when adjusting volume while muted
parent
c2222d21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
pulse-monitor.vala
src/monitors/pulse-monitor.vala
+9
-3
No files found.
src/monitors/pulse-monitor.vala
View file @
cb5986a1
...
@@ -108,9 +108,15 @@ namespace XimperShellOsd {
...
@@ -108,9 +108,15 @@ namespace XimperShellOsd {
return
;
return
;
}
}
if
(
volume
!=
last_volume
||
is_muted
!=
last_muted
)
{
bool
mute_changed
=
is_muted
!=
last_muted
;
last_volume
=
volume
;
bool
volume_really_changed
=
volume
!=
last_volume
;
last_muted
=
is_muted
;
last_volume
=
volume
;
last_muted
=
is_muted
;
if
(
mute_changed
)
{
volume_changed
(
volume
,
is_muted
);
}
else
if
(
volume_really_changed
&&
!
is_muted
)
{
volume_changed
(
volume
,
is_muted
);
volume_changed
(
volume
,
is_muted
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment