I would say, it is not possible in the current implementation to get access to the underlying text widgets of awesome. If you take a look in /usr/share/awesome/lib/awful/widget/tasklist.lua you see that the initialize function new() only returns a table with the layout. The underlying widgets are stored locally and are updated using closures.
2011/4/30 Massimiliano Brocchini <[email protected]> > Hi, > > I was trying to implement client raise when the mouse enters the tasklist > during a drag & drop action. > I'm not 100% sure this can be done in awesome, and my first step was to > check if I could attach a mouse::enter signal to mytasklist and see if I > could get client information about the label I was pointing the mouse at. > > The first problem is: the layoutbox seems to me to be different from other > widgets: it doesn't look like a Lua table (I'm just learning the basics of > the language) and I can't add signals to it, so how can I make it manage a > mouse enter event? > > Provided we can add signal manager to the tasklist, how can get information > about the client connected to the label the mouse cursor is pointing at? > > And last but not least, how can I check if the left mouse button is held > pressed / or a drag & drop action is active when the cursors enters the > tasklist? I.e. how can I know that the user is dragging something to the > tasklist? > > Hope my explanation of the problem is clear enough for you... English is > not my native language > > Thanks for your time and help, > > Massimiliano > > -- Gruß Jörg
