awful: mouse.screen_get only uses passed screen

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Byron Clark 2008-06-21 10:16:54 +02:00 committed by Julien Danjou
parent 482679548b
commit d8104e8ad4

View file

@ -117,7 +117,7 @@ end
-- @return The master window.
function P.client.master(screen)
local s = screen or mouse.screen_get()
return client.visible_get(screen)[1]
return client.visible_get(s)[1]
end
--- Move/resize a client relative to current coordinates.