On Mon, Mar 16, 2009 at 05:30:31PM +0100, Fredrik Ax wrote:
> This just a very minor suggestion so I don't bother submit an
> enhancment level bugreport or send a real patch (just a few characters
> added to one line).
>
> In the default awesome 3.2 rc.lua (line 137, at least in the one that
> ships with the Debian sid package) you have this binding for hitting
> mouse button 3 on the tasklist:
>
> button({ }, 3, function () if instance then instance:hide() end instance =
> awful.menu.clients({ width=250 }) end),
>
> I think the behaviour you achieve with the below is much nicer (if you
> hit the tasklist with mouse button three whilst the clients-menu is
> already shown, it gets hidden instead of moved):
>
> button({ }, 3, function () if instance then instance:toggle() else instance
> = awful.menu.clients({ width=250 }) end end),
Ehhh ... stupid me ... the above will not work ... since the clients
might change between each time we need to recreate the menu each time.
This will do the trick and provide the desired behavior:
button({ }, 3, function () if instance then instance:hide() instance = nil
else instance = awful.menu.clients({ width=250 }) end end),
/frax
--
To unsubscribe, send mail to [email protected].