Mmh, you are right. None of the clients in the list equal client.focus.
I have started awesome, I have stayed in one tag, I have only one
screen. I started 3 clients.
- client.focus is not nil
- I can the 3 clients in on_arrange
- None of them is equal to client.focus
So where is client.focus
Good Idea!
If i just bind
print(client.focus.class)
to a key in my rc.lua, it gives me the correct client class.
But if I put a function in my modul, which simple does the same, then
the output is nil.
On Thu, Jun 04, 2009 at 09:32:02AM +0200, Julien Danjou wrote:
At 1244098372 time_t, Nathan
At 1244103837 time_t, Nathan Huesken wrote:
Good Idea!
If i just bind
print(client.focus.class)
to a key in my rc.lua, it gives me the correct client class.
But if I put a function in my modul, which simple does the same, then
the output is nil.
So client.focus is ~= nil but
client.focus.id is also nil
I found a workaround for me.
I give client.focus as a argument to the function, than it works
But I still do not understand it :)
On Thu, Jun 04, 2009 at 10:28:26AM +0200, Julien Danjou wrote:
At 1244103837 time_t, Nathan Huesken wrote:
Good Idea!
If i just bind
At 1244106951 time_t, Nathan Huesken wrote:
Mmmh, when I do that, capi.client.focus.class/capi.client.focus.id still
is nil ...
Check your declaring capi before loading awful.client. :)
--
Julien Danjou
// ᐰ jul...@danjou.info http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974 C95C A462