Re: [dwm] click to focus no longer works

From: yy <yiyu.jgl_AT_gmail.com>
Date: Sat, 14 Jun 2008 18:31:31 +0200

2008/6/14 Johannes Hofmann <Johannes.Hofmann_AT_gmx.de>:
> Hi,
>
> with current tip (118ea4f4f554) it seems no longer possible to focus
> a client by clicking it with the left mouse button.
> To reproduce move the mouse over the stack, focus the main window
> using MODKEY-k, close that window e.g. using Ctrl-d. Now it is not
> possible to focus the window under the mouse by clicking on it.
>
> Regards,
> Johannes
>
>

It's true, this is something I changed in my dwm after sending the
patch to the list (I didn't know it was going to be applied). This (in
buttonpress()) will do the trick:

        else if((c = getclient(ev->window))) {
                click = ClkClientWin;
                focus(c);
        }

-- 
- yiyus || JGL .
Received on Sat Jun 14 2008 - 18:31:33 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:49:28 UTC