mplayer use as mtv player in dualhead screen, it steal keyboards focus when open a new video.
awesome-3.4.11
Modify rc.lua as follow:
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = true,
-- focus = flase,
-- focus = awful.client.focus.filter,
keys = clientkeys,
buttons = clientbuttons } },
{ rule = { class = "MPlayer" },
properties = { floating = true, focus=false } },
{ rule = { class = "pinentry" },
properties = { floating = true } },
{ rule = { class = "gimp" },
properties = { floating = true } },
-- Set Firefox to always map on tags number 2 of screen 1.
-- { rule = { class = "Firefox" },
-- properties = { tag = tags[1][2] } },
-- Set Firefox to always map on tags number 2 of screen 1.
{ rule = { class = "Chrome" },
properties = { tag = tags[1][6] } },
{ rule = { class = "Thunderbird" },
properties = { tag = tags[1][7] } },
{ rule = { class = "Ktouch" },
properties = { tag = tags[1][8] } },
{ rule = { class = "VBoxSDL" },
properties = { tag = tags[1][8] } },
{ rule = { class = "VirtualBox" },
properties = { tag = tags[1][8] } },
}