Thank you very much Jörg for your patch, I'll definitely try to do my part of the work during the following days.
Ciao, Massimiliano On Sat, May 7, 2011 at 12:14 AM, Jörg Thalheim <[email protected]> wrote: > Apply this patch /usr/share/awesome/lib/awful/common.lua > I currently work with awesome stable. Port it git version shouldn't be a > great deal. > It introduce 2 functions to tasklist: mouseenter and mouseleave (seems to > be the best idea for me) > Use this as your entry point. > > After tasklists are created ... > -- Create a tasklist widget > mytasklist[s] = awful.widget.tasklist(function(c) > return awful.widget.tasklist.label.currenttags(c, s) > end, mytasklist.buttons) > -- ... Use something like this. > mytasklist[s].mouseenter = function(c) > -- c is an object of client. So you can apply every operation on it as > usual. > -- http://awesome.naquadah.org/doc/api/modules/client.html > naughty.notify{text = c.name} > end > > This is my part of the work. So now do you client raise stuff and send it > back. > If both my work and yours is worth enough, we might get into awesome wm. > > > 2011/5/4 Massimiliano Brocchini <[email protected]> > >> Thanks Jörg, >> >> that would be great! I'll be your beta tester :) >> >> >> On Wed, May 4, 2011 at 10:07 AM, Jörg Thalheim <[email protected]>wrote: >> >>> When I have some time the following days, I try to provide a patch to fix >>> this. >>> >>> >>> 2011/5/3 Jörg Thalheim <[email protected]> >>> >>>> 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 >>> >>> >> > > > -- > Gruß Jörg >
