2 Dec 2011 15:56
Re: ontop for floating clients
Matthew Hague <matthewhague <at> zoho.com>
2011-12-02 14:56:24 GMT
2011-12-02 14:56:24 GMT
> > > I believe he wants it to actually be conditional - as in, not set all
> > > clients to floating when created, but to make the client ontop IF it is
> > > floating.
> > a
> > exactly!
>
> You have to use a custom function. Try this instead of
> awful.client.floating.toggle in your keybindings:
>
> function (c)
> awful.client.floating.toggle(c)
> c.above = awful.client.floating.get(c)
> end
Another solution would be to add to
client.add_signal("manage", function (c, startup)
..
end)
in rc.lua the following code:
c.ontop = awful.client.floating.get(c)
c:add_signal("property::floating",
function (c)
c.ontop = awful.client.floating.get(c)
end
)
where the first line will set a client to ontop if it is floating when it is
started, while the second will keep the ontop property in sync with the
floating property if it changes. I'm not sure if both of these are wanted.
Matt
RSS Feed