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.
This commit is contained in:
Emmanuel Lepage Vallee 2018-07-29 17:52:28 -04:00
parent 69e9cc4cbd
commit 26e4856821
1 changed files with 7 additions and 1 deletions

View File

@ -81,7 +81,13 @@ end
function ewmh.activate(c, context, hints) -- luacheck: no unused args function ewmh.activate(c, context, hints) -- luacheck: no unused args
hints = hints or {} 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 local found, ret = false