From: martin f. krafft Date: Tue, 13 Sep 2016 18:36:46 +0000 (+0200) Subject: add signal hack to prevent firefox focus stealing X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/70ec5ab01c1606e345d777b5a639a9b5e47932bf?ds=sidebyside;hp=--cc;pf=etc add signal hack to prevent firefox focus stealing --- 70ec5ab01c1606e345d777b5a639a9b5e47932bf diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 116c8d4..8f3c452 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -656,6 +656,15 @@ end) client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end) client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end) + +-- https://www.mail-archive.com/awesome@naquadah.org/msg08285.html +client.disconnect_signal("request::activate", awful.ewmh.activate) +client.connect_signal("request::activate", function(c, context, hints) + if c.class == "Firefox" and context == "ewmh" then + return + end + return awful.ewmh.activate(c, context, hints) +end) -- }}} -- vim:ft=lua:sw=4:sts=4:ts=4:et