From 0d1b34e54a1ca5f565b25b803b614da9ecbd0e03 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 20 Oct 2019 01:49:44 -0400 Subject: [PATCH] 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... --- lib/awful/placement.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/awful/placement.lua b/lib/awful/placement.lua index 1522cb306..e7cd547d9 100644 --- a/lib/awful/placement.lua +++ b/lib/awful/placement.lua @@ -89,7 +89,6 @@ local capi = mouse = mouse, client = client } -local client = require("awful.client") local layout = require("awful.layout") local a_screen = require("awful.screen") 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 cls, curlay if client_on_selected_tags(c) then - cls = client.visible(screen) + cls = screen:get_clients(false) curlay = layout.get() else -- When placing a client on unselected tags, place it as if all tags of