mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-10 11:12:37 +08:00
Fix mpd notifications showing up when music client is focused
This commit is contained in:
parent
cb731567a2
commit
6613342a2f
1 changed files with 2 additions and 1 deletions
|
|
@ -13,7 +13,8 @@ local send_mpd_notif = function (artist, song, paused)
|
|||
if first_time then
|
||||
first_time = false
|
||||
else
|
||||
if paused or (sidebar and sidebar.visible) then
|
||||
if paused or (sidebar and sidebar.visible)
|
||||
or (client.focus and (client.focus.instance == "music" or client.focus.class == "music")) then
|
||||
-- Sidebar and already shows mpd info, so
|
||||
-- destroy notification if it exists
|
||||
-- Also destroy it if music pauses
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue