On 11.10.2012 10:00, debecio wrote:
> On 09-10-12 21:32, Walter White wrote:
>> Using signals:
>>
>> client.connect_signal("property::ontop",
>> function(c)
>>     if c == client.focus then
>>         c.border_color = beautiful.border_focus
>>     elseif c.ontop then
>>         c.border_color = beautiful.border_ontop
>>     else
>>         c.border_color = beautiful.border_normal
>>     end
>> end)
>>
>> Entirely untested, but something like this should work without adding
>> anything to the keybinds.
> 
> Thanks, but I got a error:
> attempt to call field '?' (a nil value)
> 
> on line:
> client.connect_signal("property::ontop",

Ok, new try. With awesome 3.4 you need:

client.add_signal("manager", function(c),
   c:add_signal("property::ontop",
 function(c)
     if c == client.focus then
         c.border_color = beautiful.border_focus
     elseif c.ontop then
         c.border_color = beautiful.border_ontop
     else
         c.border_color = beautiful.border_normal
     end
  end)
end)


Uli
-- 
- Buck, when, exactly, did you lose your mind?
- Three months ago. I woke up one morning married to a pineapple.
  An ugly pineapple... But I loved her.

-- 
To unsubscribe, send mail to [email protected].

Reply via email to