-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Am 13.10.2010 10:15, Barkat wrote:
> Hi,
>
> "awful.key({ modkey, }, "q", function () awful.menu.clients({
> width= 250 }, {keygrabber=true }) end),"
>
> How to configure keygrabber action for this, bcoz not able to raise minimize
> window from client menu by mouse click as well as keyboard,
> I know i have to put "c.minimized = false" somewhere ,
> unminimized client window are raising properly.
>
> Regards,
> Barkat
>
/usr/share/awesome/lib/awful/menu.lua, around line 280 (in my version):
function clients(menu, args)
local cls = capi.client.get()
local cls_t = {}
for k, c in pairs(cls) do
cls_t[#cls_t + 1] = { util.escape(c.name) or "",
function ()
if not c:isvisible() then
tags.viewmore(c:tags(), c.screen)
end
capi.client.focus = c
c:raise()
end,
c.icon }
end
Change this into:
function clients(menu, args)
local cls = capi.client.get()
local cls_t = {}
for k, c in pairs(cls) do
cls_t[#cls_t + 1] = { util.escape(c.name) or "",
function ()
if not c:isvisible() then
tags.viewmore(c:tags(), c.screen)
end
c.minimized = false -- This is the change!
capi.client.focus = c
c:raise()
end,
c.icon }
end
If this actually works, someone might want to submit a patch for it.
Cheers,
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQEcBAEBCAAGBQJMthk3AAoJECLkKOvLj8sGLSgIAJhLyNlP5OCNsWhP9QgDvDEN
agsk3OzhZhUHHc3Z1ps7NRx1E4ddhX1LTAPkLBc0AKwJnoJHOkO87tu+My8xUCQp
ApY+p8RCc/k53IFwZ1UjO4kZ8pTayeThejqsFp3NzoQin+Tm6+rWxDGh9VF1vJCl
8q5AEARFlsoEDSXQPOwnCbbpK1hlexvGwVbsP+1L0eXiAb2TIXCv4SRUVE3kuRhe
SGVtgyASeu5JeJ8t3InSkxiX/uT7+9ZKYsZrfcB4j347hyvDZXjUrkioZs6npHZ9
tYKyqm1KoKQn1zX8L84AxBTLBkybdx2p393+iumbYiea7rVtdqSNE3V3tqBuUYM=
=xkg7
-----END PGP SIGNATURE-----
--
To unsubscribe, send mail to [email protected].