From db3003aa48ff826104cd3064c716cc2590ea2488 Mon Sep 17 00:00:00 2001 From: Luca Capezzuto Date: Sun, 14 Apr 2019 16:13:33 +0100 Subject: [PATCH] #261 fix --- lain | 2 +- rc.lua.template | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lain b/lain index 013654c..85db468 160000 --- a/lain +++ b/lain @@ -1 +1 @@ -Subproject commit 013654cd1af4bb69f31c1c641cdb24bd8b7c58df +Subproject commit 85db468376ff1d554127df1f0335c8a2f8c8c2be diff --git a/rc.lua.template b/rc.lua.template index e0f8c59..d09c678 100644 --- a/rc.lua.template +++ b/rc.lua.template @@ -742,11 +742,11 @@ client.connect_signal("mouse::enter", function(c) c:emit_signal("request::activate", "mouse_enter", {raise = true}) end) --- No border for maximized clients +-- No borders if only 1 non floating or maximised client visible function border_adjust(c) - if c.maximized then -- no borders if only 1 client visible + if c.maximized or c.floating and #c.screen.clients == 1 then c.border_width = 0 - elseif #awful.screen.focused().clients > 1 then + elseif #c.screen.clients > 1 then c.border_width = beautiful.border_width c.border_color = beautiful.border_focus end