From d1e72d143742c74fb2b58e649368fec191cc4ba1 Mon Sep 17 00:00:00 2001 From: elenapan Date: Tue, 7 Apr 2020 20:10:08 +0300 Subject: [PATCH] Simplify restoration of floating geometry signal --- config/awesome/rc.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 325b66a..797a62a 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -969,15 +969,10 @@ awful.mouse.resize.set_mode("live") tag.connect_signal('property::layout', function(t) for k, c in ipairs(t:clients()) do if awful.layout.get(mouse.screen) == awful.layout.suit.floating then - -- Geometry x = 0 and y = 0 most probably means that the client's - -- floating_geometry has not been set yet. - -- If that is the case, don't change their geometry - -- TODO does this affect clients that are really placed in 0,0 ? local cgeo = awful.client.property.get(c, 'floating_geometry') - if cgeo and not (cgeo.x == 0 and cgeo.y == 0) then + if cgeo then c:geometry(awful.client.property.get(c, 'floating_geometry')) end - --c:geometry(awful.client.property.get(c, 'floating_geometry')) end end end)