From 6613342a2ff540c99690dcf51516bf17cf784305 Mon Sep 17 00:00:00 2001 From: elenapan Date: Sun, 19 Apr 2020 15:32:11 +0300 Subject: [PATCH] Fix mpd notifications showing up when music client is focused --- config/awesome/notifications/mpd.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/awesome/notifications/mpd.lua b/config/awesome/notifications/mpd.lua index 8b4c489..77ef02b 100644 --- a/config/awesome/notifications/mpd.lua +++ b/config/awesome/notifications/mpd.lua @@ -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