Re: client.content always nil
On Wed, Jul 20 2011, Massimiliano Brocchini wrote: Has content been removed from client's table? Or am I doing something wrong? IIRC, it's only available if the client is displayed on the screen. -- Julien Danjou ❱ http://julien.danjou.info pgpYUPQGvZIp8.pgp Description: PGP signature
Re: client.content always nil
Just tried with a client visible on the screen, but result is nil nonetheless. I obtain the same result with default rc.lua configuration... just to be sure I didn't break anything :) Don't know if this can help, but saving the client icon with screen[1]:tags()[1]:clients()[1].icon:save('/tmp/icon.png') works. Ciao, Massimiliano On Thu, Jul 21, 2011 at 10:24 AM, Julien Danjou jul...@danjou.info wrote: On Wed, Jul 20 2011, Massimiliano Brocchini wrote: Has content been removed from client's table? Or am I doing something wrong? IIRC, it's only available if the client is displayed on the screen. -- Julien Danjou ❱ http://julien.danjou.info
Re: client.content always nil
On 21.07.2011 10:40, Massimiliano Brocchini wrote: Just tried with a client visible on the screen, but result is nil nonetheless. I obtain the same result with default rc.lua configuration... just to be sure I didn't break anything :) Don't know if this can help, but saving the client icon with screen[1]:tags()[1]:clients()[1].icon:save('/tmp/icon.png') works. This means that .icon is not nil. Else you'd have a lua error: $ lua -e 'a = nil ; a:save()' lua: (command line):1: attempt to index global 'a' (a nil value) stack traceback: (command line):1: in main chunk [C]: ? Uli -- The Angels have the phone box! -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
Re: client.content always nil
Ok, probably my last statement about icon created some confusion... sorry about that. My problem is client.content is always nil. Am I the only one with this behaviour? Tnx, Massimiliano On Thu, Jul 21, 2011 at 2:38 PM, Uli Schlachter psyc...@znc.in wrote: On 21.07.2011 10:40, Massimiliano Brocchini wrote: Just tried with a client visible on the screen, but result is nil nonetheless. I obtain the same result with default rc.lua configuration... just to be sure I didn't break anything :) Don't know if this can help, but saving the client icon with screen[1]:tags()[1]:clients()[1].icon:save('/tmp/icon.png') works. This means that .icon is not nil. Else you'd have a lua error: $ lua -e 'a = nil ; a:save()' lua: (command line):1: attempt to index global 'a' (a nil value) stack traceback: (command line):1: in main chunk [C]: ? Uli -- The Angels have the phone box! -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
Re: client.content always nil
On 21.07.2011 15:51, Massimiliano Brocchini wrote: Ok, probably my last statement about icon created some confusion... sorry about that. My problem is client.content is always nil. Am I the only one with this behaviour? Tnx, Massimiliano Since I'm running git master, I asked on IRC instead: psychon ping, anyone alive? psychon could you run this and tell me what happens: echo 'return client.focus.content' | awesome-client tuxx pong tuxx tuxx@tuxx-desktop:~$ echo 'return client.focus.content' | awesome-client string image: 0x281b348 tuxx awesome v3.4.3 (Engines) tessellated psychon: string image: 0x8a43f2c (Exploder) In other words: Works fine for everyone else. What are we doing wrong? 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 awesome-unsubscr...@naquadah.org.