From 69e9cc4cbdcb241f66519ca64eb745090e11b553 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 28 Jul 2018 14:30:43 -0400 Subject: [PATCH] request::activate: Unminimize clients Fixes #927 --- lib/awful/ewmh.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/awful/ewmh.lua b/lib/awful/ewmh.lua index 4657a372..9e29b904 100644 --- a/lib/awful/ewmh.lua +++ b/lib/awful/ewmh.lua @@ -98,6 +98,12 @@ function ewmh.activate(c, context, hints) -- luacheck: no unused args if found then break end end + -- Minimized clients can be requested to have focus by, for example, 3rd + -- party toolbars and they might not try to unminimize it first. + if ret ~= false and hints.raise then + c.minimized = false + end + if ret ~= false and c:isvisible() then client.focus = c elseif ret == false and not hints.force then