From f681ace58721f0f636c7daf30829192ca806f407 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Fri, 15 Apr 2016 01:43:58 -0400 Subject: [PATCH] ewmh: Take focusable into account in request::activate --- lib/awful/ewmh.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/awful/ewmh.lua b/lib/awful/ewmh.lua index e110a450..bca2e6e7 100644 --- a/lib/awful/ewmh.lua +++ b/lib/awful/ewmh.lua @@ -162,6 +162,10 @@ end -- @tparam[opt] table hints A table with additional hints: -- @tparam[opt=false] boolean hints.raise should the client be raised? 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:isvisible() then client.focus = c end