Bug 390502 - Taskbar audio indicator appears after delay on desktop switch
Summary: Taskbar audio indicator appears after delay on desktop switch
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: 5.11.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-15 12:08 UTC by Alexander Potashev
Modified: 2018-02-15 12:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.13.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2018-02-15 12:08:13 UTC
1. Set virtual desktop count to at least 2 (in systemsettings).
2. Set "Show only window from current desktop" in taskbar Plasma widget configuration.
2. Have something playing in an application on Desktop 1 (e.g. a Youtube video in Chrome)
3. Switch to Desktop 2
4. Switch back to Desktop 1 and watch the taskbar

Actual behaviour:
 The application item will firstly appear in taskbar without the audio indicator (speaker icon), then it will appear after 1-2 seconds.

Expected behaviour:
 The audio indicator should appear immediately along with the application item in taskbar.
Comment 1 Kai Uwe Broulik 2018-02-15 12:09:26 UTC
The indicator is delayed to avoid distraction but I agree when the window just appeared in the list while already playing, it should show right away.
Comment 2 Kai Uwe Broulik 2018-02-15 12:29:00 UTC
Git commit 0ead1a6e77e818c1a201b2676007808fd23488e3 by Kai Uwe Broulik.
Committed on 15/02/2018 at 12:28.
Pushed by broulik into branch 'master'.

[Task Manager] Don't delay audio indicator when task appears

When the task appears in Task Manager and is already playing audio, show the indicator right away.
There's no distraction from that since the task as a whole appears.
Only when the audio stream appears during the lifetime of a task, it is delayed to avoid distractions by short sound effects.
FIXED-IN: 5.13.0

Differential Revision: https://phabricator.kde.org/D10539

M  +1    -1    applets/taskmanager/package/contents/ui/AudioStream.qml
M  +13   -5    applets/taskmanager/package/contents/ui/Task.qml

https://commits.kde.org/plasma-desktop/0ead1a6e77e818c1a201b2676007808fd23488e3