Skip to content

Commit

Permalink
fix: make sticky windows not unexpectedly steal the focus
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondill committed Aug 9, 2024
1 parent 37cfe36 commit 6d5fd09
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions module/client/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
local ewmh = require("awful.ewmh")
local require = require("util.rel_require")

require(..., "decoration") ---@module "module.client.decoration"
require(..., "rules") ---@module "module.client.rules"
require(..., "titlebar") ---@module "module.client.titlebar"

local function focus_handler(c) ---@param c AwesomeClientInstance
if c.sticky then return false end
end
ewmh.add_activate_filter(focus_handler, "autofocus.check_focus")
ewmh.add_activate_filter(focus_handler, "autofocus.check_focus_tag")
ewmh.add_activate_filter(focus_handler, "mouse_enter")

0 comments on commit 6d5fd09

Please sign in to comment.