Awesome WM: workaround for gnome or mate panel stealing focus

If you use awesome 3.5, and a gnome or mate panel, the panel will often receive focus when you switch desktops. As a workaround:

  1. Add this rule to your rc.lua:
    { rule = { class = "Mate-panel" }, properties = { ontop = true, focusable = false } }
    
  2. Replace /usr/share/awesome/lib/awful/autofocus.lua with the attached file
Tobias Kraze Over 7 years ago