[awesomerc] Set border on newclient
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
67b2702b7d
commit
4a17da051f
|
@ -181,6 +181,9 @@ end
|
||||||
|
|
||||||
-- Hook function to execute when a new client appears.
|
-- Hook function to execute when a new client appears.
|
||||||
function hook_newclient(c)
|
function hook_newclient(c)
|
||||||
|
-- New client may not receive focus
|
||||||
|
-- if they're not focusable, so set border anyway.
|
||||||
|
c:border_set({ width = 1, color = "black" })
|
||||||
c:focus_set()
|
c:focus_set()
|
||||||
local name = c:name_get()
|
local name = c:name_get()
|
||||||
if name:lower():find("mplayer") then
|
if name:lower():find("mplayer") then
|
||||||
|
|
Loading…
Reference in New Issue