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:
parent
69e9cc4cbd
commit
26e4856821
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue