From 26e4856821da72a2213ceb65610983fbd7ea1295 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 29 Jul 2018 17:52:28 -0400 Subject: [PATCH] activate: Raise unfocusable clients. I am sure there is corner cases where this is considered wrong, but it allows to simplify rc.lua handling of such clients. --- lib/awful/ewmh.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/awful/ewmh.lua b/lib/awful/ewmh.lua index 9e29b9040..8e8397ab8 100644 --- a/lib/awful/ewmh.lua +++ b/lib/awful/ewmh.lua @@ -81,7 +81,13 @@ end function ewmh.activate(c, context, hints) -- luacheck: no unused args hints = hints or {} - if c.focusable == false and not hints.force then return end + if c.focusable == false and not hints.force then + if hints.raise then + c:raise() + end + + return + end local found, ret = false