I think this should be added:

c:add_signal("tagged", check_focus)

to autofocus.lua in this section:

client.add_signal("new", function(c)
    c:add_signal("untagged", check_focus)
    c:add_signal("property::hidden", check_focus)
    c:add_signal("property::minimized", check_focus)
end)

Seems to trivial to send a patch for. If it is right please someone with
commit access add it.

I am running awesome 3.4.5 installed from debian repository and I do not
have it.

On Sat, Jun 12, 2010 at 4:10 PM, Adam Nielsen <[email protected]> wrote:

> > now whenever I press the associated key binding to toggle the tag on a
> > client, that client loses its focus. Some other client on the same tag
> > gets focused without getting raised. See the attached screenshot where
> > the focus( observe the tasklist ) is on a terminal while gvim is raised.
>
> I've noticed the same problem both when I drag a window onto another screen
> or
> when I press Mod4+lclick on a tag.  The focused window (the one being
> moved)
> loses its focus and in this case, no other window on the system has focus.
>  If
> I move the window back to its original screen then some random window on
> that
> screen gets the focus.
>
> I think it must be a bug.
>
> > This is how is fixed it:
> >
> > function ()
> >     if client.focus and tags[client.focus.screen][i] then
> >         awful.client.toggletag(tags[client.focus.screen][i])
> >         awful.client.focus.history.previous()
> >         if client.focus then
> >             client.focus:raise()
> >         end
> >     end
> > end
> >
> > But it appears very hackish. Please suggest something better.
>
> If you don't get any better suggestions I might try this, it's a bit
> annoying
> moving windows around and having them unexpectedly lose focus.  (Which is
> all
> the more difficult because if you Mod4+drag a window to another screen when
> you left-click again, Awesome resumes the drag operation even though you're
> not holding Mod4.  So to move a window to another screen with the mouse,
> you
> actually have to hold Mod4 and drag the window, then let go of Mod4, then
> move
> the mouse a few pixels, then click on the window to focus it...)
>
> Definitely seems like a bug to me :-)
>
> Cheers,
> Adam.
>



-- 
Anurag Priyam,
2nd Year Undergraduate,
Department of Mechanical Engineering,
IIT Kharagpur.
+91-9775550642

Reply via email to