Disable focusing for "Onboard" on-screen keyboard

This commit is contained in:
Alexander Gehrke 2021-05-25 21:16:21 +00:00
parent 4ce1c25bb2
commit 87cf79a71a
2 changed files with 12 additions and 3 deletions

View file

@ -62,6 +62,10 @@ awful.rules.rules = {
-- c:connect_signal("unfocus", function() client.focus = c end) -- c:connect_signal("unfocus", function() client.focus = c end)
-- end -- end
--}, --},
{
rule = { class = "Onboard" },
properties = { sticky = true, ontop = true, focusable = false}
},
{ {
rule = { class = "Passprompt" }, rule = { class = "Passprompt" },
properties = { ontop = true, focus = true} properties = { ontop = true, focus = true}

View file

@ -159,7 +159,12 @@ root.buttons(awful.util.table.join(
)) ))
local clientbuttons = awful.util.table.join( local clientbuttons = awful.util.table.join(
awful.button({ }, 1, function (c) client.focus = c; c:raise() end), awful.button({ }, 1, function (c)
if c.name ~= "Onboard" then
client.focus = c
c:raise()
end
end),
awful.button({ modkey }, 1, awful.mouse.client.move), awful.button({ modkey }, 1, awful.mouse.client.move),
awful.button({ modkey }, 3, awful.mouse.client.resize)) awful.button({ modkey }, 3, awful.mouse.client.resize))