placement: Remove a nearly unused dependency.
`awful.client` was only used once and the function exists as a screen method. This will help untangle the dependencies a bit... To tangle them even more after that...
This commit is contained in:
parent
36999de123
commit
0d1b34e54a
|
@ -89,7 +89,6 @@ local capi =
|
||||||
mouse = mouse,
|
mouse = mouse,
|
||||||
client = client
|
client = client
|
||||||
}
|
}
|
||||||
local client = require("awful.client")
|
|
||||||
local layout = require("awful.layout")
|
local layout = require("awful.layout")
|
||||||
local a_screen = require("awful.screen")
|
local a_screen = require("awful.screen")
|
||||||
local grect = require("gears.geometry").rectangle
|
local grect = require("gears.geometry").rectangle
|
||||||
|
@ -938,7 +937,7 @@ function placement.no_overlap(c, args)
|
||||||
local screen = get_screen(c.screen or a_screen.getbycoord(geometry.x, geometry.y))
|
local screen = get_screen(c.screen or a_screen.getbycoord(geometry.x, geometry.y))
|
||||||
local cls, curlay
|
local cls, curlay
|
||||||
if client_on_selected_tags(c) then
|
if client_on_selected_tags(c) then
|
||||||
cls = client.visible(screen)
|
cls = screen:get_clients(false)
|
||||||
curlay = layout.get()
|
curlay = layout.get()
|
||||||
else
|
else
|
||||||
-- When placing a client on unselected tags, place it as if all tags of
|
-- When placing a client on unselected tags, place it as if all tags of
|
||||||
|
|
Loading…
Reference in New Issue