From 87cf79a71add4ca17f711eb1e3383a667b3339b1 Mon Sep 17 00:00:00 2001 From: Alexander Gehrke Date: Tue, 25 May 2021 21:16:21 +0000 Subject: [PATCH] Disable focusing for "Onboard" on-screen keyboard --- rules.lua | 4 ++++ separable/binder.lua | 11 ++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/rules.lua b/rules.lua index 8896600..feb92a9 100644 --- a/rules.lua +++ b/rules.lua @@ -62,6 +62,10 @@ awful.rules.rules = { -- c:connect_signal("unfocus", function() client.focus = c end) -- end --}, + { + rule = { class = "Onboard" }, + properties = { sticky = true, ontop = true, focusable = false} + }, { rule = { class = "Passprompt" }, properties = { ontop = true, focus = true} diff --git a/separable/binder.lua b/separable/binder.lua index 94a5ee9..b9f4de9 100644 --- a/separable/binder.lua +++ b/separable/binder.lua @@ -159,9 +159,14 @@ root.buttons(awful.util.table.join( )) local clientbuttons = awful.util.table.join( -awful.button({ }, 1, function (c) client.focus = c; c:raise() end), -awful.button({ modkey }, 1, awful.mouse.client.move), -awful.button({ modkey }, 3, awful.mouse.client.resize)) + 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 }, 3, awful.mouse.client.resize)) binder.client = {}