Re: client.property.set and client.focus
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 pointing? My problem is this: - In the tiling algo, I set a property to every client (the leaf they are in) - When I want to split a leaf, I want to split the leaf the focused client is in - But the focused client does not have the leaf property - But it must have been tiled, the focused client is on the tag that just has been tiled I do not understand what is happening here :(. Thanks! Nathan On Thu, Jun 04, 2009 at 08:07:19AM +0200, Julien Danjou wrote: At 1244053920 time_t, Nathan Huesken wrote: I am expecting client.focus to have another property at another point, but I think that the problem can be simplified to this. Because at that time, it's possible that no client has focus yet. It's even possible that the client that have focus is on another screen. Cheers, -- Julien Danjou // ᐰ jul...@danjou.info http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD // When I get sad, I stop being sad and be awesome instead. True story. -- To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.
Re: client.property.set and 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 Huesken wrote: - 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 pointing? Printing its name would help maybe? -- Julien Danjou // ᐰ jul...@danjou.info http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD // In the Sixth Sense, Bruce Willis is dead. -- To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.
Re: client.property.set and client.focus
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.class is nil? Is there any other attribute like .id that you can get ? If you got .id you can then request information: xwininfo -id id -- Julien Danjou // ᐰ jul...@danjou.info http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD // And thinking so much differently. signature.asc Description: Digital signature
Re: client.property.set and client.focus
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 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.class is nil? Is there any other attribute like .id that you can get ? If you got .id you can then request information: xwininfo -id id -- Julien Danjou // ᐰ jul...@danjou.info http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD // And thinking so much differently. -- To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.
Re: client.property.set and client.focus
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 B51E C2FE E5CD // Tomorrow I was nothing, yesterday I'll be. signature.asc Description: Digital signature