THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#759 - remember layout on restart
User who did this - Daniel Hahler (blueyed)

----------
Here is the proof of concept for storing "floating".

The other internal property would be "dockable", not sure if that need to get 
remembered across restarts?!

diff --git i/lib/awful/client.lua.in w/lib/awful/client.lua.in
index f72e9be..0c371d2 100644
--- i/lib/awful/client.lua.in
+++ w/lib/awful/client.lua.in
@@ -871,7 +871,17 @@ function client.property.get(c, prop)
     if client.data.properties[c] then
         return client.data.properties[c][prop]
     end
+    if prop == "floating" then
+        -- bnote("get:"..tostring(c)..':'..prop)
+        if not client.data.properties[c] then
+            client.data.properties[c] = {}
+        end
+        client.data.properties[c][prop] = c:get_xproperty('prop_'..prop)
+        return client.data.properties[c][prop]
+    end
 end
+awesome.register_xproperty('prop_floating', 'boolean')
+

 --- Set a client property.
 -- This properties are internal to awful. Some are used to move clients, etc.
@@ -882,7 +892,11 @@ function client.property.set(c, prop, value)
     if not client.data.properties[c] then
         client.data.properties[c] = {}
     end
-    client.data.properties[c][prop] = value
+    if prop == "floating" then
+        -- bnote("set:"..tostring(c)..':'..prop..':'..tostring(value))
+        client.data.properties[c][prop] = value
+        c:set_xproperty('prop_'..prop, value)
+    end
     c:emit_signal("property::" .. prop)
 end

----------

More information can be found at the following URL:
https://awesome.naquadah.org/bugs/index.php?do=details&task_id=759#comment3958

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

--
To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Reply via email to