-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi,
Am 12.09.2016 um 16:39 schrieb martin f krafft: [...] > If I have Firefox (v45) and a terminal on the same tag, and I run "firefox > http://debian.org" in the terminal, Debian's website opens in a new tab in > Firefox (good!), *and* focus is shifted to that window (bad!). [...] > How can I find out what causes the focus shift? Sounds like awesome sends a _NET_ACTIVE_WINDOW request. > What can be done to prevent this behaviour? Write your own handler for such requests. The following (untested) code *might* help: client.disconnect_signal("request::activate", awful.ewmh.activate) client.connect_signal("request::activate", function(c, context, hints) if c.class == "Firefox" -- This is wrong for sure, but you get the idea and context == "ewmh" -- The request came from _NET_ACTIVE_WINDOW then -- Just ignore the request return end awful.ewmh.activate(c, context, hints) end) I don't know right know what class Firefox uses. If you just want to kill _NET_ACTIVE_WINDOW completely, then leave out the check for firefox and ignore context = "ewmh" all together. Cheers, Uli - -- Bitte nicht mit dem verbleibenden Auge in den Laser gucken. - Vincent Ebert -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJX1sjZAAoJECLkKOvLj8sGIPAIAJIL+NGF6/s2iV36CVEPsApn yzQQeVGWM8kFZ8FU3SZfhvw2sAe9TTNO4bhydGinbb8AHvfBLNyqdFKV3RevXow9 9q2VctspAtlfCF2k4uXV3IUjMLz3/az2K397KvRecy1WidE8rxCO38zQz0aIzGG8 0gSc0OSfCnmN7SDM+whZejfhtLCCcLKIg0tD6W+D5C3CqFLfrlbnHtt67pN/JsOF WiLHjCUic23eCT0nT6/gmcpXKqwsRSGkDPXEBjMheaQyVZ+8uEKj8Of/+Y6B9l76 nyMN1F1D6FRcV++20vLzkWPN1of5B5kHCw0xWIZKadvnWorMCYQ6WIHaX98GIcs= =9EMz -----END PGP SIGNATURE----- -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.