dont set the geometry of a floating windows when the geometry is empty
From 7e808dd0620a374a10248adc12a4070cf9c64602 Mon Sep 17 00:00:00 2001
From: Cedric GESTES <[email protected]>
Date: Thu, 3 Sep 2009 21:40:33 +0200
Subject: [PATCH] awful.client: dont set geometry on floating when geo is nil

Signed-off-by: Cedric GESTES <[email protected]>
---
 lib/awful/client.lua.in |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in
index bfd361f..c4237fa 100644
--- a/lib/awful/client.lua.in
+++ b/lib/awful/client.lua.in
@@ -557,7 +557,10 @@ function floating.set(c, s)
         property.set(c, "floating", s)
         local screen = c.screen
         if s == true then
-            c:geometry(property.get(c, "floating_geometry"))
+            local geo = property.get(c, "floating_geometry")
+            if geo ~= nil then
+                geo = c:geometry()
+            end
         end
         c.screen = screen
     end
-- 
1.6.0.4

Reply via email to