> > 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.
> 
> As I said in my first post, this does not work here (Awesome 3.4.11)

Ah -- i can't test on 3.4.11 unfortunately, but this solution differs from
your original message, which was:

    client.add_signal(
       "property::floating",
       function(c)
          c.ontop=c.floating
       end
    )

I'm not sure where you put this code, but for my solution, you put it inside
the client.add_signal("manage", function (c, startup)... function (defined by
default in rc.lua).  It also calls c:add_signal, rather than client.add_signal,
and uses awful.client.floating.get(c) instead of c.floating (which i don't
think exists).  

The call back, however, only gets activated when the floating state changes.
Hence, i put c.ontop = awful.client.floating.get(c) inside the
client.add_signal("manage", function (c, startup)... function too, to set ontop
by the initial value of floating.

Apologies if i'm wasting everyones' time.

Best,

Matt

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

Reply via email to